Commit Graph
4446 Commits
Author SHA1 Message Date
Jim Meyering 2bb1686d0c . 1997-12-25 17:05:45 +00:00
Jim Meyering 1f1ea6519b (get_ids): Don't cast GID_T_MAX to long, it might overflow. 1997-12-25 17:05:23 +00:00
Jim Meyering f10648f6c7 (skip): Compare lseek return value with -1 to allow it
to be negative as signed value.
1997-12-25 17:04:15 +00:00
Jim Meyering d9f1fd86d9 Declare stpcpy only if not defined as macro. 1997-12-25 17:02:25 +00:00
Jim Meyering ea0f644cdd (S_ISLNK): Define this instead of S_ISDIR. 1997-12-25 17:01:35 +00:00
Jim Meyering 4f71c21910 Declare stpcpy only if not defined as macro. 1997-12-25 17:01:13 +00:00
Jim Meyering 9897ca0150 Declare stpcpy only if not defined as macro. 1997-12-25 16:49:08 +00:00
Jim Meyering 1a8e1f7bfd Include <string.h> if available. 1997-12-25 16:48:51 +00:00
Jim Meyering c9f538deb9 (copy_internal): Use S_ISLNK only if defined. 1997-12-25 16:48:29 +00:00
Jim Meyering 88df9ef6f6 . 1997-12-24 13:16:54 +00:00
Jim Meyering 46e9b477a9 *** empty log message *** 1997-12-21 22:48:24 +00:00
Jim Meyering 82e77237a6 . 1997-12-21 22:48:08 +00:00
Jim Meyering f54368ec1b s/__P/PARAMS/ 1997-12-21 22:39:53 +00:00
Jim Meyering 44dddb31c0 *** empty log message *** 1997-12-21 22:32:44 +00:00
Jim Meyering 2e308957d4 s/__P/PARAMS/ 1997-12-21 22:30:30 +00:00
Jim Meyering 2391251527 Don't include limits.h. 1997-12-21 22:22:04 +00:00
Jim Meyering 3858d01133 Don't include limits.h. 1997-12-21 22:21:26 +00:00
Jim Meyering 62fed0f3a2 Don't include limits.h or sys/param.h. 1997-12-21 22:21:10 +00:00
Jim Meyering 37998fc5bd Don't include limits.h.
These are all done in system.h now.
1997-12-21 22:20:17 +00:00
Jim Meyering 6123a88852 Don't include limits.h.
(UINT_MAX): Don't define.
(INT_MAX): Don't define.
These are all done in system.h now.
1997-12-21 22:20:01 +00:00
Jim Meyering 3d0e13a00d . 1997-12-21 12:29:32 +00:00
Jim Meyering 2f606bcf56 *** empty log message *** 1997-12-21 12:18:05 +00:00
Jim Meyering 1ed365fb82 Use PARAMS, not __P. 1997-12-21 12:17:26 +00:00
Jim Meyering 2b2fb0cf91 *** empty log message *** 1997-12-21 12:11:32 +00:00
Jim Meyering 76d9ec0ad0 increment serial number 1997-12-21 12:11:17 +00:00
Jim Meyering 32068e5812 increment serial number 1997-12-21 12:10:55 +00:00
Jim Meyering 90d217b19a increment serial number 1997-12-21 12:10:26 +00:00
Jim Meyering 726c48d02f Fix reversed types on -1 args to chown.
From Kaveh Ghazi.
1997-12-21 12:10:07 +00:00
Jim Meyering 1af374e6a4 . 1997-12-21 12:06:03 +00:00
Jim Meyering 9ef99e168b *** empty log message *** 1997-12-21 12:05:56 +00:00
Jim Meyering bdcaa361bc Include exclude.h.
(exclude): New static var.
(long_options, usage, main): Add --exclude and --exclude-from or -X.
(count_entry): Skip excluded entries.
1997-12-21 12:05:42 +00:00
Jim Meyering a1003f154f remove FIXME-describe comments 1997-12-21 11:57:17 +00:00
Jim Meyering 3ba71d6de1 add FIXME-describe comments 1997-12-21 11:56:34 +00:00
Jim Meyering ac5fc8ea73 Include exclude.h.
(exclude): New static var.
(long_options, usage, main): Add --exclude and --exclude-from or -X.
(count_entry): Skip excluded entries.
1997-12-21 11:47:27 +00:00
Jim Meyering a3e0b4392c (libfu_a_SOURCES): Add exclude.c.
(noinst_HEADERS): Add exclude.h.
1997-12-21 11:46:49 +00:00
Jim Meyering cbd71d8eea . 1997-12-21 11:43:34 +00:00
Jim Meyering a2c7ebd49c . 1997-12-21 11:24:53 +00:00
Jim Meyering 727298f3f5 Use PARAMS, not __P. 1997-12-21 11:22:51 +00:00
Jim Meyering 27d24b46ad (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.
1997-12-21 11:17:20 +00:00
Jim Meyering a2f0f9ac89 s/__P/PARAMS/g 1997-12-16 15:44:00 +00:00
Jim Meyering ece81e9e4a *** empty log message *** 1997-12-16 15:43:01 +00:00
Jim Meyering 70618de21b s/__P/PARAMS/g. 1997-12-16 15:42:48 +00:00
Jim Meyering 589a3c2872 *** empty log message *** 1997-12-16 15:33:33 +00:00
Jim Meyering 03f9f3dbec s/__P/PARAMS/g 1997-12-16 15:32:32 +00:00
Jim Meyering fc22546441 . 1997-12-16 15:16:20 +00:00
Jim Meyering 08b3d2975e *** empty log message *** 1997-12-16 15:13:06 +00:00
Jim Meyering 5d764734f7 tweak indentation 1997-12-16 15:11:23 +00:00
Jim Meyering 36665a7464 (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.
1997-12-16 15:09:19 +00:00
Jim Meyering 1ca40285b2 (deep): Remove `find > k' debugging remnant. 1997-12-15 11:35:22 +00:00
Jim Meyering ce939d6f44 Make sure we get diagnostics in English. 1997-12-14 21:51:44 +00:00