summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
1997-12-21.Jim Meyering
1997-12-21.Jim Meyering
1997-12-21Use PARAMS, not __P.Jim Meyering
1997-12-21(rpl_chown): Rename from chown.Jim Meyering
Undefine chown just after including config.h. Include sys/stat.h. Use correct ordering of uid and gid parameters both in function definition and in call to chown. With patches from Kaveh Ghazi.
1997-12-16s/__P/PARAMS/gJim Meyering
1997-12-16*** empty log message ***Jim Meyering
1997-12-16s/__P/PARAMS/g.Jim Meyering
1997-12-16*** empty log message ***Jim Meyering
1997-12-16s/__P/PARAMS/gJim Meyering
1997-12-16.Jim Meyering
1997-12-16*** empty log message ***Jim 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-15(deep): Remove `find > k' debugging remnant.Jim Meyering
1997-12-14Make sure we get diagnostics in English.Jim Meyering
1997-12-14Remove lseek and memchr dcls.Jim Meyering
1997-12-14*** empty log message ***Jim Meyering
1997-12-14*** empty log message ***Jim Meyering
1997-12-14*** empty log message ***Jim Meyering
1997-12-14(ASSIGN_STRDUPA): Cast alloca return value to char*.Jim Meyering
1997-12-14s/HAVE_DECLARATION_/HAVE_DECL_/.Jim Meyering
1997-12-14cast memcpy to char*Jim Meyering
1997-12-14Add #serial 1.Jim Meyering
1997-12-14add memchr dclJim Meyering
1997-12-14s/HAVE_DECLARATION/HAVE_DECL_/gJim Meyering
1997-12-14add lseekJim Meyering
1997-12-14*** empty log message ***Jim Meyering
1997-12-14*** empty log message ***Jim Meyering
1997-12-14s/DECLARATION_/DECL_/g.Jim Meyering
Add memchr.
1997-12-14*** empty log message ***Jim Meyering
1997-12-14s/HAVE_DECLARATION_/HAVE_DECL_/gJim Meyering
1997-12-13*** empty log message ***Jim 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-13.Jim Meyering
1997-12-13.Jim Meyering
1997-12-13.Jim Meyering
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.Jim Meyering
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-13*** empty log message ***Jim Meyering
1997-12-11*** empty log message ***Jim Meyering
1997-12-11.Jim Meyering
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-10*** empty log message ***Jim Meyering
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-06.Jim Meyering
1997-12-06.Jim Meyering