Jim Meyering [Thu, 25 Dec 1997 17:01:35 +0000 (17:01 +0000)]
(S_ISLNK): Define this instead of S_ISDIR.
Jim Meyering [Thu, 25 Dec 1997 17:01:13 +0000 (17:01 +0000)]
Declare stpcpy only if not defined as macro.
Jim Meyering [Thu, 25 Dec 1997 16:49:08 +0000 (16:49 +0000)]
Declare stpcpy only if not defined as macro.
Jim Meyering [Thu, 25 Dec 1997 16:48:51 +0000 (16:48 +0000)]
Include <string.h> if available.
Jim Meyering [Thu, 25 Dec 1997 16:48:29 +0000 (16:48 +0000)]
(copy_internal): Use S_ISLNK only if defined.
Jim Meyering [Wed, 24 Dec 1997 13:16:54 +0000 (13:16 +0000)]
.
Jim Meyering [Sun, 21 Dec 1997 22:48:24 +0000 (22:48 +0000)]
*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 22:48:08 +0000 (22:48 +0000)]
.
Jim Meyering [Sun, 21 Dec 1997 22:39:53 +0000 (22:39 +0000)]
s/__P/PARAMS/
Jim Meyering [Sun, 21 Dec 1997 22:32:44 +0000 (22:32 +0000)]
*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 22:30:30 +0000 (22:30 +0000)]
s/__P/PARAMS/
Jim Meyering [Sun, 21 Dec 1997 22:22:04 +0000 (22:22 +0000)]
Don't include limits.h.
Jim Meyering [Sun, 21 Dec 1997 22:21:26 +0000 (22:21 +0000)]
Don't include limits.h.
Jim Meyering [Sun, 21 Dec 1997 22:21:10 +0000 (22:21 +0000)]
Don't include limits.h or sys/param.h.
Jim Meyering [Sun, 21 Dec 1997 22:20:17 +0000 (22:20 +0000)]
Don't include limits.h.
These are all done in system.h now.
Jim Meyering [Sun, 21 Dec 1997 22:20:01 +0000 (22:20 +0000)]
Don't include limits.h.
(UINT_MAX): Don't define.
(INT_MAX): Don't define.
These are all done in system.h now.
Jim Meyering [Sun, 21 Dec 1997 12:29:32 +0000 (12:29 +0000)]
.
Jim Meyering [Sun, 21 Dec 1997 12:18:05 +0000 (12:18 +0000)]
*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 12:17:26 +0000 (12:17 +0000)]
Use PARAMS, not __P.
Jim Meyering [Sun, 21 Dec 1997 12:11:32 +0000 (12:11 +0000)]
*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 12:11:17 +0000 (12:11 +0000)]
increment serial number
Jim Meyering [Sun, 21 Dec 1997 12:10:55 +0000 (12:10 +0000)]
increment serial number
Jim Meyering [Sun, 21 Dec 1997 12:10:26 +0000 (12:10 +0000)]
increment serial number
Jim Meyering [Sun, 21 Dec 1997 12:10:07 +0000 (12:10 +0000)]
Fix reversed types on -1 args to chown.
From Kaveh Ghazi.
Jim Meyering [Sun, 21 Dec 1997 12:06:03 +0000 (12:06 +0000)]
.
Jim Meyering [Sun, 21 Dec 1997 12:05:56 +0000 (12:05 +0000)]
*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 12:05:42 +0000 (12:05 +0000)]
Include exclude.h.
(exclude): New static var.
(long_options, usage, main): Add --exclude and --exclude-from or -X.
(count_entry): Skip excluded entries.
Jim Meyering [Sun, 21 Dec 1997 11:57:17 +0000 (11:57 +0000)]
remove FIXME-describe comments
Jim Meyering [Sun, 21 Dec 1997 11:56:34 +0000 (11:56 +0000)]
add FIXME-describe comments
Jim Meyering [Sun, 21 Dec 1997 11:47:27 +0000 (11:47 +0000)]
Include exclude.h.
(exclude): New static var.
(long_options, usage, main): Add --exclude and --exclude-from or -X.
(count_entry): Skip excluded entries.
Jim Meyering [Sun, 21 Dec 1997 11:46:49 +0000 (11:46 +0000)]
(libfu_a_SOURCES): Add exclude.c.
(noinst_HEADERS): Add exclude.h.
Jim Meyering [Sun, 21 Dec 1997 11:43:34 +0000 (11:43 +0000)]
.
Jim Meyering [Sun, 21 Dec 1997 11:24:53 +0000 (11:24 +0000)]
.
Jim Meyering [Sun, 21 Dec 1997 11:22:51 +0000 (11:22 +0000)]
Use PARAMS, not __P.
Jim Meyering [Sun, 21 Dec 1997 11:17:20 +0000 (11:17 +0000)]
(rpl_chown): Rename from chown.
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.
Jim Meyering [Tue, 16 Dec 1997 15:44:00 +0000 (15:44 +0000)]
s/__P/PARAMS/g
Jim Meyering [Tue, 16 Dec 1997 15:43:01 +0000 (15:43 +0000)]
*** empty log message ***
Jim Meyering [Tue, 16 Dec 1997 15:42:48 +0000 (15:42 +0000)]
s/__P/PARAMS/g.
Jim Meyering [Tue, 16 Dec 1997 15:33:33 +0000 (15:33 +0000)]
*** empty log message ***
Jim Meyering [Tue, 16 Dec 1997 15:32:32 +0000 (15:32 +0000)]
s/__P/PARAMS/g
Jim Meyering [Tue, 16 Dec 1997 15:16:20 +0000 (15:16 +0000)]
.
Jim Meyering [Tue, 16 Dec 1997 15:13:06 +0000 (15:13 +0000)]
*** empty log message ***
Jim Meyering [Tue, 16 Dec 1997 15:11:23 +0000 (15:11 +0000)]
tweak indentation
Jim Meyering [Tue, 16 Dec 1997 15:09:19 +0000 (15:09 +0000)]
(struct bin_str): Make len int, not unsigned, to avoid
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.
Jim Meyering [Mon, 15 Dec 1997 11:35:22 +0000 (11:35 +0000)]
(deep): Remove `find > k' debugging remnant.
Jim Meyering [Sun, 14 Dec 1997 21:51:44 +0000 (21:51 +0000)]
Make sure we get diagnostics in English.
Jim Meyering [Sun, 14 Dec 1997 16:28:18 +0000 (16:28 +0000)]
Remove lseek and memchr dcls.
Jim Meyering [Sun, 14 Dec 1997 16:28:06 +0000 (16:28 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Dec 1997 16:25:06 +0000 (16:25 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Dec 1997 15:38:18 +0000 (15:38 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Dec 1997 15:38:04 +0000 (15:38 +0000)]
(ASSIGN_STRDUPA): Cast alloca return value to char*.
Jim Meyering [Sun, 14 Dec 1997 15:15:07 +0000 (15:15 +0000)]
s/HAVE_DECLARATION_/HAVE_DECL_/.
Jim Meyering [Sun, 14 Dec 1997 15:12:29 +0000 (15:12 +0000)]
cast memcpy to char*
Jim Meyering [Sun, 14 Dec 1997 15:03:38 +0000 (15:03 +0000)]
Add #serial 1.
Jim Meyering [Sun, 14 Dec 1997 14:00:15 +0000 (14:00 +0000)]
add memchr dcl
Jim Meyering [Sun, 14 Dec 1997 12:40:33 +0000 (12:40 +0000)]
s/HAVE_DECLARATION/HAVE_DECL_/g
Jim Meyering [Sun, 14 Dec 1997 12:03:55 +0000 (12:03 +0000)]
add lseek
Jim Meyering [Sun, 14 Dec 1997 12:03:38 +0000 (12:03 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Dec 1997 08:03:18 +0000 (08:03 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Dec 1997 08:03:07 +0000 (08:03 +0000)]
s/DECLARATION_/DECL_/g.
Add memchr.
Jim Meyering [Sun, 14 Dec 1997 07:44:38 +0000 (07:44 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Dec 1997 07:40:32 +0000 (07:40 +0000)]
s/HAVE_DECLARATION_/HAVE_DECL_/g
Jim Meyering [Sat, 13 Dec 1997 23:42:54 +0000 (23:42 +0000)]
*** empty log message ***
Jim Meyering [Sat, 13 Dec 1997 23:39:09 +0000 (23:39 +0000)]
(main): Add some braces.
Check return code from fclose of each input file.
Close stdout and check for errors.
Jim Meyering [Sat, 13 Dec 1997 23:38:53 +0000 (23:38 +0000)]
(close_output_file): Check ferror before calling fclose.
(main): Close stdout and check for errors.
Jim Meyering [Sat, 13 Dec 1997 22:56:50 +0000 (22:56 +0000)]
.
Jim Meyering [Sat, 13 Dec 1997 22:55:52 +0000 (22:55 +0000)]
.
Jim Meyering [Sat, 13 Dec 1997 22:54:01 +0000 (22:54 +0000)]
.
Jim Meyering [Sat, 13 Dec 1997 22:49:33 +0000 (22:49 +0000)]
Change --help output to tell the truth: that for of=FILE,
FILE *is* truncated. Reported by Miles Bader.
Remove incomplete, usage-like comment at top of file.
Jim Meyering [Sat, 13 Dec 1997 17:01:54 +0000 (17:01 +0000)]
(usage): Mention that `notrunc' is a conv= option.
Reported by Miles Bader.
Jim Meyering [Sat, 13 Dec 1997 16:23:06 +0000 (16:23 +0000)]
.
Jim Meyering [Sat, 13 Dec 1997 16:22:58 +0000 (16:22 +0000)]
(do_move): If rename fails for any reason (not just when
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.
Jim Meyering [Sat, 13 Dec 1997 16:13:34 +0000 (16:13 +0000)]
*** empty log message ***
Jim Meyering [Thu, 11 Dec 1997 18:18:22 +0000 (18:18 +0000)]
*** empty log message ***
Jim Meyering [Thu, 11 Dec 1997 08:40:21 +0000 (08:40 +0000)]
.
Jim Meyering [Thu, 11 Dec 1997 08:40:10 +0000 (08:40 +0000)]
(do_link): Don't require --force when target exists and
using --backup. This changes makes ln consistent with cp and mv in
this respect. Suggestion from Eli Zaretskii.
Jim Meyering [Wed, 10 Dec 1997 11:17:16 +0000 (11:17 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Dec 1997 10:31:25 +0000 (10:31 +0000)]
use NULL, '\0' instead of zeroes
Jim Meyering [Wed, 10 Dec 1997 10:25:46 +0000 (10:25 +0000)]
(main): Make sure pw->pw_shell is non-NULL before trying to strdup it.
Patch from Dick Streefland.
Jim Meyering [Sat, 6 Dec 1997 21:18:14 +0000 (21:18 +0000)]
.
Jim Meyering [Sat, 6 Dec 1997 21:16:57 +0000 (21:16 +0000)]
.
Jim Meyering [Sat, 6 Dec 1997 21:09:58 +0000 (21:09 +0000)]
revert last change
Jim Meyering [Sat, 6 Dec 1997 21:09:30 +0000 (21:09 +0000)]
use SORT_INITIAL_LINE_LENGTH envvar for testing
Jim Meyering [Sat, 6 Dec 1997 21:08:41 +0000 (21:08 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Dec 1997 18:23:51 +0000 (18:23 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Dec 1997 13:42:21 +0000 (13:42 +0000)]
.
Jim Meyering [Sat, 6 Dec 1997 12:13:52 +0000 (12:13 +0000)]
(fillbuf): split longer-than-80-char line
Jim Meyering [Sat, 6 Dec 1997 09:20:26 +0000 (09:20 +0000)]
.
Jim Meyering [Sat, 6 Dec 1997 09:18:32 +0000 (09:18 +0000)]
.
Jim Meyering [Sat, 6 Dec 1997 08:57:14 +0000 (08:57 +0000)]
Separate struct dcl and typedef.
(String *): Rename from parameter-shadowed `string'.
(stringstruct): Remove typedef.
Jim Meyering [Sat, 6 Dec 1997 08:27:25 +0000 (08:27 +0000)]
(re_compile_fastmap): Remove dcl of unused num_regs.
Jim Meyering [Sun, 30 Nov 1997 15:17:48 +0000 (15:17 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Nov 1997 15:14:10 +0000 (15:14 +0000)]
.
Jim Meyering [Sun, 30 Nov 1997 14:22:56 +0000 (14:22 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Nov 1997 14:20:17 +0000 (14:20 +0000)]
(savedir): Revert last change. malloc always
works when called with zero, because we use the wrapper if the
system version is lacking.
Jim Meyering [Sun, 30 Nov 1997 13:44:02 +0000 (13:44 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Nov 1997 13:43:36 +0000 (13:43 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Nov 1997 13:37:44 +0000 (13:37 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Nov 1997 13:35:45 +0000 (13:35 +0000)]
(EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
Jim Meyering [Sun, 30 Nov 1997 13:35:35 +0000 (13:35 +0000)]
.