summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
1998-01-03(show_dev): Treat `fsu.fsu_bavail == (unsigned long) -1'Jim Meyering
just like `fsu.fsu_blocks == 0' as an indicator that usage information is invalid. This happens with Solaris-5.5.1 CD-ROM partitions.
1998-01-02(get_ids): When otherwise unspecified, set uid and gid to -1.Jim Meyering
1998-01-01(remove_cwd_entries): Initialize the entry-name obstackJim Meyering
only once and never free it.
1998-01-01(show_dev): Move check for 0-block device (and return ifJim Meyering
not e.g., -a) back up to precede first print stmt.
1997-12-31(show_dev): Print inode counts human readably.Jim Meyering
1997-12-31(decode_switches): -h and -H override output units.Jim Meyering
(print_dir, gobble_file, print_long_format, print_file_name_and_frills): Print disk allocations human readably.
1997-12-31(show_dev): Move computation ofJim Meyering
blocks_used etc. and blocks_percent_used, inodes_used etc. and inodes_percent_used into respective branches of the `if (inode_format)' statement where they're actually used.
1997-12-29(usage): s/TAB/ /gJim Meyering
1997-12-29(remove_cwd_entries): Plug a gross leak -- don't callJim Meyering
obstack_init inside the loop.
1997-12-29(usage): Replace TABs with spaces in --help message.Jim Meyering
1997-12-28Remove incorrect declaration of group_member.Jim Meyering
Include group-member.h instead. Based on suggestion from Ulrich Drepper.
1997-12-25(get_ids): Don't cast GID_T_MAX to long, it might overflow.Jim Meyering
1997-12-25(skip): Compare lseek return value with -1 to allow itJim Meyering
to be negative as signed value.
1997-12-25(S_ISLNK): Define this instead of S_ISDIR.Jim Meyering
1997-12-25Declare stpcpy only if not defined as macro.Jim Meyering
1997-12-25(copy_internal): Use S_ISLNK only if defined.Jim Meyering
1997-12-21s/__P/PARAMS/Jim Meyering
1997-12-21s/__P/PARAMS/Jim Meyering
1997-12-21Don't include limits.h.Jim Meyering
1997-12-21Don't include limits.h.Jim Meyering
1997-12-21Don't include limits.h or sys/param.h.Jim Meyering
1997-12-21Don't include limits.h.Jim Meyering
These are all done in system.h now.
1997-12-21Don't include limits.h.Jim Meyering
(UINT_MAX): Don't define. (INT_MAX): Don't define. These are all done in system.h now.
1997-12-21Use PARAMS, not __P.Jim Meyering
1997-12-21Include exclude.h.Jim Meyering
(exclude): New static var. (long_options, usage, main): Add --exclude and --exclude-from or -X. (count_entry): Skip excluded entries.
1997-12-21Include exclude.h.Jim Meyering
(exclude): New static var. (long_options, usage, main): Add --exclude and --exclude-from or -X. (count_entry): Skip excluded entries.
1997-12-16s/__P/PARAMS/gJim Meyering
1997-12-16s/__P/PARAMS/g.Jim Meyering
1997-12-16s/__P/PARAMS/gJim Meyering
1997-12-16tweak indentationJim Meyering
1997-12-16(struct bin_str): Make len int, not unsigned, to avoidJim Meyering
bogus comparison < 0. (quote_filename): Add forward decl. (decode_switches): -b, -e, -N, -Q are now mutually exclusive. (print_dir): Quote directory name as per quoting options. (print_long_format): Don't count color changes as part of file name. (quote_filename): Revamp interface: now accepts stream to output to and filename, and returns length of quoted filename. This removes duplicated code and should make errors less likely. Also, no longer mallocs storage. All callers changed. Don't quote ' ' if -Q. (OUTCHAR): New macro. (SAVECHAR, SAVE_2_CHARS): Remove. (print_name_with_quoting): New stack arg. All callers changed. (print_color_indicator): Cast ext len to size_t to avoid warning with GCC 2.8. (length_of_file_name_and_frills): Rewrite to use quote_filename. This fixes bug when computing file name length with -e. 1997-12-14 Paul Eggert <eggert@twinsun.com> Add shell style quoting, and make it the default. * NEWS, doc/fileutils.texi: Describe -e, which is now the default. Describe change to --dired output. * src/ls.c (quote_shell): New var. (long_options, decode_switches, usage): New option -e or --quote-shell. (dired_dump_obstack): New arg STYLE. (main): Pass quoting style to dired_dump_obstack. (decode_switches): -N now clears quote_as_string. (quote_filename): Add shell style quoting.
1997-12-14Remove lseek and memchr dcls.Jim Meyering
1997-12-14(ASSIGN_STRDUPA): Cast alloca return value to char*.Jim Meyering
1997-12-14add memchr dclJim Meyering
1997-12-14s/HAVE_DECLARATION/HAVE_DECL_/gJim Meyering
1997-12-13(main): Add some braces.Jim Meyering
Check return code from fclose of each input file. Close stdout and check for errors.
1997-12-13(close_output_file): Check ferror before calling fclose.Jim Meyering
(main): Close stdout and check for errors.
1997-12-13Change --help output to tell the truth: that for of=FILE,Jim Meyering
FILE *is* truncated. Reported by Miles Bader. Remove incomplete, usage-like comment at top of file.
1997-12-13(usage): Mention that `notrunc' is a conv= option.Jim Meyering
Reported by Miles Bader.
1997-12-13(do_move): If rename fails for any reason (not just whenJim Meyering
errno == EXDEV), then revert to trying copy-then-unlink. This is necessary to allow moving files within certain types of Linux NFS mounted filesystems. Reported by Marty Leisner.
1997-12-11(do_link): Don't require --force when target exists andJim Meyering
using --backup. This changes makes ln consistent with cp and mv in this respect. Suggestion from Eli Zaretskii.
1997-12-10use NULL, '\0' instead of zeroesJim Meyering
1997-12-10(main): Make sure pw->pw_shell is non-NULL before trying to strdup it.Jim Meyering
Patch from Dick Streefland.
1997-12-06revert last changeJim Meyering
1997-12-06use SORT_INITIAL_LINE_LENGTH envvar for testingJim Meyering
1997-12-06(fillbuf): split longer-than-80-char lineJim Meyering
1997-12-06Separate struct dcl and typedef.Jim Meyering
(String *): Rename from parameter-shadowed `string'. (stringstruct): Remove typedef.
1997-11-30remove trailing blankJim Meyering
1997-11-30remove trailing blankJim Meyering
1997-11-30(print_long_format): Rename inner-scoped `buf' arrays to `hbuf'Jim Meyering
to avoid shadowing local.