platform/upstream/coreutils.git
26 years ago*** empty log message *** FILEUTILS-3_16i
Jim Meyering [Fri, 2 Jan 1998 23:18:08 +0000 (23:18 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Fri, 2 Jan 1998 23:16:53 +0000 (23:16 +0000)]
*** empty log message ***

26 years ago(get_ids): When otherwise unspecified, set uid and gid to -1.
Jim Meyering [Fri, 2 Jan 1998 23:16:38 +0000 (23:16 +0000)]
(get_ids): When otherwise unspecified, set uid and gid to -1.

26 years ago(make_path): Try to change ownership only if we've just created the
Jim Meyering [Fri, 2 Jan 1998 23:15:39 +0000 (23:15 +0000)]
(make_path): Try to change ownership only if we've just created the
directory.  Fix latent bug (s/&&/||/ in two places -- also, note that
it could not be exercised via install or mkdir) whereby chown would
not be invoked when only one of owner/group is not -1.

26 years ago*** empty log message ***
Jim Meyering [Thu, 1 Jan 1998 21:33:29 +0000 (21:33 +0000)]
*** empty log message ***

26 years ago(remove_cwd_entries): Initialize the entry-name obstack
Jim Meyering [Thu, 1 Jan 1998 21:32:46 +0000 (21:32 +0000)]
(remove_cwd_entries): Initialize the entry-name obstack
only once and never free it.

26 years ago(show_dev): Move check for 0-block device (and return if
Jim Meyering [Thu, 1 Jan 1998 21:30:00 +0000 (21:30 +0000)]
(show_dev): Move check for 0-block device (and return if
not e.g., -a) back up to precede first print stmt.

26 years ago*** empty log message ***
Jim Meyering [Thu, 1 Jan 1998 19:45:43 +0000 (19:45 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Thu, 1 Jan 1998 19:44:02 +0000 (19:44 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Thu, 1 Jan 1998 19:41:47 +0000 (19:41 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Thu, 1 Jan 1998 19:36:19 +0000 (19:36 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Wed, 31 Dec 1997 21:36:14 +0000 (21:36 +0000)]
*** empty log message ***

26 years ago(show_dev): Print inode counts human readably.
Jim Meyering [Wed, 31 Dec 1997 21:34:07 +0000 (21:34 +0000)]
(show_dev): Print inode counts human readably.

26 years ago(decode_switches): -h and -H override output units.
Jim Meyering [Wed, 31 Dec 1997 21:33:51 +0000 (21:33 +0000)]
(decode_switches): -h and -H override output units.
(print_dir, gobble_file, print_long_format,
print_file_name_and_frills): Print disk allocations human readably.

26 years ago.
Jim Meyering [Wed, 31 Dec 1997 14:28:44 +0000 (14:28 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Wed, 31 Dec 1997 14:04:54 +0000 (14:04 +0000)]
*** empty log message ***

26 years ago(show_dev): Move computation of
Jim Meyering [Wed, 31 Dec 1997 14:04:20 +0000 (14:04 +0000)]
(show_dev): Move computation of
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.

26 years ago*** empty log message ***
Jim Meyering [Wed, 31 Dec 1997 11:01:48 +0000 (11:01 +0000)]
*** empty log message ***

26 years agoDefine and use PARAMS, not __EXCLUDE_P.
Jim Meyering [Wed, 31 Dec 1997 11:01:35 +0000 (11:01 +0000)]
Define and use PARAMS, not __EXCLUDE_P.

26 years agoUse PARAMS, not __EXCLUDE_P.
Jim Meyering [Wed, 31 Dec 1997 11:01:18 +0000 (11:01 +0000)]
Use PARAMS, not __EXCLUDE_P.

26 years ago(usage): s/TAB/ /g
Jim Meyering [Mon, 29 Dec 1997 22:09:28 +0000 (22:09 +0000)]
(usage): s/TAB/      /g

26 years ago*** empty log message ***
Jim Meyering [Mon, 29 Dec 1997 21:29:51 +0000 (21:29 +0000)]
*** empty log message ***

26 years ago(remove_cwd_entries): Plug a gross leak -- don't call
Jim Meyering [Mon, 29 Dec 1997 21:04:26 +0000 (21:04 +0000)]
(remove_cwd_entries): Plug a gross leak -- don't call
obstack_init inside the loop.

26 years ago*** empty log message ***
Jim Meyering [Mon, 29 Dec 1997 12:06:02 +0000 (12:06 +0000)]
*** empty log message ***

26 years ago(usage): Replace TABs with spaces in --help message.
Jim Meyering [Mon, 29 Dec 1997 12:05:36 +0000 (12:05 +0000)]
(usage): Replace TABs with spaces in --help message.

26 years ago(invalid_arg): Use a single fprintf and whole
Jim Meyering [Mon, 29 Dec 1997 12:02:43 +0000 (12:02 +0000)]
(invalid_arg): Use a single fprintf and whole
format statements to ease translation.
Convert from K&R to ANSI function dcls.

26 years ago.
Jim Meyering [Sun, 28 Dec 1997 21:49:54 +0000 (21:49 +0000)]
.

26 years agoUse ANSI syntax, not K&R.
Jim Meyering [Sun, 28 Dec 1997 10:41:01 +0000 (10:41 +0000)]
Use ANSI syntax, not K&R.

26 years ago*** empty log message ***
Jim Meyering [Sun, 28 Dec 1997 10:38:30 +0000 (10:38 +0000)]
*** empty log message ***

26 years ago(make_path) [!__STDC__]: Remove K&R-style definition.
Jim Meyering [Sun, 28 Dec 1997 10:38:15 +0000 (10:38 +0000)]
(make_path) [!__STDC__]: Remove K&R-style definition.

26 years agodefine PARAMS
Jim Meyering [Sun, 28 Dec 1997 09:48:26 +0000 (09:48 +0000)]
define PARAMS

26 years agoAdd PARAMS.
Jim Meyering [Sun, 28 Dec 1997 08:04:08 +0000 (08:04 +0000)]
Add PARAMS.

26 years agoRemove incorrect declaration of group_member.
Jim Meyering [Sun, 28 Dec 1997 08:03:54 +0000 (08:03 +0000)]
Remove incorrect declaration of group_member.
Include group-member.h instead.
Based on suggestion from Ulrich Drepper.

26 years ago*** empty log message *** FILEUTILS-3_16h
Jim Meyering [Sat, 27 Dec 1997 23:55:40 +0000 (23:55 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Sat, 27 Dec 1997 23:55:18 +0000 (23:55 +0000)]
*** empty log message ***

26 years ago.
Jim Meyering [Thu, 25 Dec 1997 23:06:12 +0000 (23:06 +0000)]
.

26 years agonew version from kb
Jim Meyering [Thu, 25 Dec 1997 18:00:21 +0000 (18:00 +0000)]
new version from kb

26 years ago.
Jim Meyering [Thu, 25 Dec 1997 17:51:15 +0000 (17:51 +0000)]
.

26 years ago(_GNU_SOURCE): Define only if not already defined.
Jim Meyering [Thu, 25 Dec 1997 17:44:08 +0000 (17:44 +0000)]
(_GNU_SOURCE): Define only if not already defined.

26 years ago.
Jim Meyering [Thu, 25 Dec 1997 17:43:21 +0000 (17:43 +0000)]
.

26 years ago.
Jim Meyering [Thu, 25 Dec 1997 17:05:45 +0000 (17:05 +0000)]
.

26 years ago(get_ids): Don't cast GID_T_MAX to long, it might overflow.
Jim Meyering [Thu, 25 Dec 1997 17:05:23 +0000 (17:05 +0000)]
(get_ids): Don't cast GID_T_MAX to long, it might overflow.

26 years ago(skip): Compare lseek return value with -1 to allow it
Jim Meyering [Thu, 25 Dec 1997 17:04:15 +0000 (17:04 +0000)]
(skip): Compare lseek return value with -1 to allow it
to be negative as signed value.

26 years agoDeclare stpcpy only if not defined as macro.
Jim Meyering [Thu, 25 Dec 1997 17:02:25 +0000 (17:02 +0000)]
Declare stpcpy only if not defined as macro.

26 years ago(S_ISLNK): Define this instead of S_ISDIR.
Jim Meyering [Thu, 25 Dec 1997 17:01:35 +0000 (17:01 +0000)]
(S_ISLNK): Define this instead of S_ISDIR.

26 years agoDeclare stpcpy only if not defined as macro.
Jim Meyering [Thu, 25 Dec 1997 17:01:13 +0000 (17:01 +0000)]
Declare stpcpy only if not defined as macro.

26 years agoDeclare 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.

26 years agoInclude <string.h> if available.
Jim Meyering [Thu, 25 Dec 1997 16:48:51 +0000 (16:48 +0000)]
Include <string.h> if available.

26 years ago(copy_internal): Use S_ISLNK only if defined.
Jim Meyering [Thu, 25 Dec 1997 16:48:29 +0000 (16:48 +0000)]
(copy_internal): Use S_ISLNK only if defined.

26 years ago.
Jim Meyering [Wed, 24 Dec 1997 13:16:54 +0000 (13:16 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 22:48:24 +0000 (22:48 +0000)]
*** empty log message ***

26 years ago.
Jim Meyering [Sun, 21 Dec 1997 22:48:08 +0000 (22:48 +0000)]
.

26 years agos/__P/PARAMS/
Jim Meyering [Sun, 21 Dec 1997 22:39:53 +0000 (22:39 +0000)]
s/__P/PARAMS/

26 years ago*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 22:32:44 +0000 (22:32 +0000)]
*** empty log message ***

26 years agos/__P/PARAMS/
Jim Meyering [Sun, 21 Dec 1997 22:30:30 +0000 (22:30 +0000)]
s/__P/PARAMS/

26 years agoDon't include limits.h.
Jim Meyering [Sun, 21 Dec 1997 22:22:04 +0000 (22:22 +0000)]
Don't include limits.h.

26 years agoDon't include limits.h.
Jim Meyering [Sun, 21 Dec 1997 22:21:26 +0000 (22:21 +0000)]
Don't include limits.h.

26 years agoDon't include limits.h or sys/param.h.
Jim Meyering [Sun, 21 Dec 1997 22:21:10 +0000 (22:21 +0000)]
Don't include limits.h or sys/param.h.

26 years agoDon't include limits.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.

26 years agoDon't include limits.h.
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.

26 years ago.
Jim Meyering [Sun, 21 Dec 1997 12:29:32 +0000 (12:29 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 12:18:05 +0000 (12:18 +0000)]
*** empty log message ***

26 years agoUse PARAMS, not __P.
Jim Meyering [Sun, 21 Dec 1997 12:17:26 +0000 (12:17 +0000)]
Use PARAMS, not __P.

26 years ago*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 12:11:32 +0000 (12:11 +0000)]
*** empty log message ***

26 years agoincrement serial number
Jim Meyering [Sun, 21 Dec 1997 12:11:17 +0000 (12:11 +0000)]
increment serial number

26 years agoincrement serial number
Jim Meyering [Sun, 21 Dec 1997 12:10:55 +0000 (12:10 +0000)]
increment serial number

26 years agoincrement serial number
Jim Meyering [Sun, 21 Dec 1997 12:10:26 +0000 (12:10 +0000)]
increment serial number

26 years agoFix reversed types on -1 args to chown.
Jim Meyering [Sun, 21 Dec 1997 12:10:07 +0000 (12:10 +0000)]
Fix reversed types on -1 args to chown.
From Kaveh Ghazi.

26 years ago.
Jim Meyering [Sun, 21 Dec 1997 12:06:03 +0000 (12:06 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 12:05:56 +0000 (12:05 +0000)]
*** empty log message ***

26 years agoInclude exclude.h.
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.

26 years agoremove FIXME-describe comments
Jim Meyering [Sun, 21 Dec 1997 11:57:17 +0000 (11:57 +0000)]
remove FIXME-describe comments

26 years agoadd FIXME-describe comments
Jim Meyering [Sun, 21 Dec 1997 11:56:34 +0000 (11:56 +0000)]
add FIXME-describe comments

26 years agoInclude exclude.h.
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.

26 years ago(libfu_a_SOURCES): Add exclude.c.
Jim Meyering [Sun, 21 Dec 1997 11:46:49 +0000 (11:46 +0000)]
(libfu_a_SOURCES): Add exclude.c.
(noinst_HEADERS): Add exclude.h.

26 years ago.
Jim Meyering [Sun, 21 Dec 1997 11:43:34 +0000 (11:43 +0000)]
.

26 years ago.
Jim Meyering [Sun, 21 Dec 1997 11:24:53 +0000 (11:24 +0000)]
.

26 years agoUse PARAMS, not __P.
Jim Meyering [Sun, 21 Dec 1997 11:22:51 +0000 (11:22 +0000)]
Use PARAMS, not __P.

26 years ago(rpl_chown): Rename from chown.
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.

26 years agos/__P/PARAMS/g
Jim Meyering [Tue, 16 Dec 1997 15:44:00 +0000 (15:44 +0000)]
s/__P/PARAMS/g

26 years ago*** empty log message ***
Jim Meyering [Tue, 16 Dec 1997 15:43:01 +0000 (15:43 +0000)]
*** empty log message ***

26 years agos/__P/PARAMS/g.
Jim Meyering [Tue, 16 Dec 1997 15:42:48 +0000 (15:42 +0000)]
s/__P/PARAMS/g.

26 years ago*** empty log message ***
Jim Meyering [Tue, 16 Dec 1997 15:33:33 +0000 (15:33 +0000)]
*** empty log message ***

26 years agos/__P/PARAMS/g
Jim Meyering [Tue, 16 Dec 1997 15:32:32 +0000 (15:32 +0000)]
s/__P/PARAMS/g

26 years ago.
Jim Meyering [Tue, 16 Dec 1997 15:16:20 +0000 (15:16 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Tue, 16 Dec 1997 15:13:06 +0000 (15:13 +0000)]
*** empty log message ***

26 years agotweak indentation
Jim Meyering [Tue, 16 Dec 1997 15:11:23 +0000 (15:11 +0000)]
tweak indentation

26 years ago(struct bin_str): Make len int, not unsigned, to avoid
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.

26 years ago(deep): Remove `find > k' debugging remnant.
Jim Meyering [Mon, 15 Dec 1997 11:35:22 +0000 (11:35 +0000)]
(deep): Remove `find > k' debugging remnant.

26 years agoMake sure we get diagnostics in English.
Jim Meyering [Sun, 14 Dec 1997 21:51:44 +0000 (21:51 +0000)]
Make sure we get diagnostics in English.

26 years agoRemove lseek and memchr dcls. FILEUTILS-3_16g
Jim Meyering [Sun, 14 Dec 1997 16:28:18 +0000 (16:28 +0000)]
Remove lseek and memchr dcls.

26 years ago*** empty log message ***
Jim Meyering [Sun, 14 Dec 1997 16:28:06 +0000 (16:28 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Sun, 14 Dec 1997 16:25:06 +0000 (16:25 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Sun, 14 Dec 1997 15:38:18 +0000 (15:38 +0000)]
*** empty log message ***

26 years ago(ASSIGN_STRDUPA): Cast alloca return value to char*.
Jim Meyering [Sun, 14 Dec 1997 15:38:04 +0000 (15:38 +0000)]
(ASSIGN_STRDUPA): Cast alloca return value to char*.

26 years agos/HAVE_DECLARATION_/HAVE_DECL_/.
Jim Meyering [Sun, 14 Dec 1997 15:15:07 +0000 (15:15 +0000)]
s/HAVE_DECLARATION_/HAVE_DECL_/.

26 years agocast memcpy to char*
Jim Meyering [Sun, 14 Dec 1997 15:12:29 +0000 (15:12 +0000)]
cast memcpy to char*

26 years agoAdd #serial 1.
Jim Meyering [Sun, 14 Dec 1997 15:03:38 +0000 (15:03 +0000)]
Add #serial 1.

26 years agoadd memchr dcl
Jim Meyering [Sun, 14 Dec 1997 14:00:15 +0000 (14:00 +0000)]
add memchr dcl

26 years agos/HAVE_DECLARATION/HAVE_DECL_/g
Jim Meyering [Sun, 14 Dec 1997 12:40:33 +0000 (12:40 +0000)]
s/HAVE_DECLARATION/HAVE_DECL_/g