platform/upstream/coreutils.git
18 years agoColorize set-user-ID and set-group-ID files and sticky,
Jim Meyering [Mon, 5 Sep 2005 17:11:39 +0000 (17:11 +0000)]
Colorize set-user-ID and set-group-ID files and sticky,
other-writable, and sticky-and-other-writable directories.

Document the default colors for the new strings.
From Mike Frysinger, based on a patch from Fedora.

18 years agoColorize set-user-ID and set-group-ID files and sticky,
Jim Meyering [Mon, 5 Sep 2005 17:11:15 +0000 (17:11 +0000)]
Colorize set-user-ID and set-group-ID files and sticky,
other-writable, and sticky-and-other-writable directories.

(slack_codes): Add new dircolors mode names.
(ls_codes): Add corresponding two-letter ls mode strings.
From Mike Frysinger, based on a patch from Fedora.

18 years ago*** empty log message ***
Jim Meyering [Mon, 5 Sep 2005 16:57:46 +0000 (16:57 +0000)]
*** empty log message ***

18 years ago(__builtin_constant_p) [__GNUC__ <= 2]: Define to 1.
Jim Meyering [Mon, 5 Sep 2005 16:57:40 +0000 (16:57 +0000)]
(__builtin_constant_p) [__GNUC__ <= 2]: Define to 1.
(verify_type__) [verify_error_if_non_const__]: New member/test,
to help detect when verify or verify_expr is mistakenly passed
a non-constant argument within a function.

18 years agoDon't omit comments until there is better documentation.
Jim Meyering [Mon, 5 Sep 2005 15:06:37 +0000 (15:06 +0000)]
Don't omit comments until there is better documentation.

18 years ago.
Jim Meyering [Sun, 4 Sep 2005 20:08:25 +0000 (20:08 +0000)]
.

18 years ago.
Jim Meyering [Sun, 4 Sep 2005 20:06:36 +0000 (20:06 +0000)]
.

18 years agoClarify comment about size bounds.
Paul Eggert [Thu, 1 Sep 2005 19:31:10 +0000 (19:31 +0000)]
Clarify comment about size bounds.

18 years agoRequire gl_STAT_MACROS
Jim Meyering [Thu, 1 Sep 2005 18:10:34 +0000 (18:10 +0000)]
Require gl_STAT_MACROS

18 years ago*** empty log message ***
Jim Meyering [Thu, 1 Sep 2005 18:10:12 +0000 (18:10 +0000)]
*** empty log message ***

18 years agoRequire gl_FUNC_CHOWN, for the definition of
Jim Meyering [Thu, 1 Sep 2005 18:06:54 +0000 (18:06 +0000)]
Require gl_FUNC_CHOWN, for the definition of
CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.

18 years ago*** empty log message ***
Jim Meyering [Wed, 31 Aug 2005 07:51:07 +0000 (07:51 +0000)]
*** empty log message ***

18 years ago(quotearg_n_options): Change code to be suboptimal, in
Jim Meyering [Wed, 31 Aug 2005 07:51:04 +0000 (07:51 +0000)]
(quotearg_n_options): Change code to be suboptimal, in
order to avoid an unsuppressible warning from gcc on 64-bit systems.

18 years ago*** empty log message ***
Jim Meyering [Wed, 31 Aug 2005 07:20:21 +0000 (07:20 +0000)]
*** empty log message ***

18 years ago(get_charset_aliases): Add `void' in parameter list
Jim Meyering [Wed, 31 Aug 2005 07:19:26 +0000 (07:19 +0000)]
(get_charset_aliases): Add `void' in parameter list
to placate gcc's -Wstrict-prototypes.

18 years ago"rm -FOO" now suggests "rm ./-FOO" if the file "-FOO"
Paul Eggert [Mon, 29 Aug 2005 21:14:06 +0000 (21:14 +0000)]
"rm -FOO" now suggests "rm ./-FOO" if the file "-FOO"
exists and "-FOO" is not a valid option.

18 years agoInclude lstat.h, quotearg.h.
Paul Eggert [Mon, 29 Aug 2005 21:13:32 +0000 (21:13 +0000)]
Include lstat.h, quotearg.h.
(diagnose_leading_hyphen): New function.
(main): Use it.

18 years agoupdate from gnulib
Jim Meyering [Sun, 28 Aug 2005 09:18:33 +0000 (09:18 +0000)]
update from gnulib

18 years agoNew file
Jim Meyering [Sat, 27 Aug 2005 20:50:42 +0000 (20:50 +0000)]
New file

18 years agoInclude <sys/types.h> and declare creat_safer.
Jim Meyering [Sat, 27 Aug 2005 20:43:26 +0000 (20:43 +0000)]
Include <sys/types.h> and declare creat_safer.

18 years ago*** empty log message ***
Jim Meyering [Sat, 27 Aug 2005 20:42:53 +0000 (20:42 +0000)]
*** empty log message ***

18 years agosync from gnulib
Jim Meyering [Sat, 27 Aug 2005 20:40:31 +0000 (20:40 +0000)]
sync from gnulib

18 years ago*** empty log message ***
Jim Meyering [Sat, 27 Aug 2005 19:05:28 +0000 (19:05 +0000)]
*** empty log message ***

18 years agoGo ahead and leave the patch in (i.e., revert
Jim Meyering [Sat, 27 Aug 2005 19:05:24 +0000 (19:05 +0000)]
Go ahead and leave the patch in (i.e., revert
today's change).  It doesn't cause a problem after all, since
--exclude-from=- is always handled before --files0-from=F.

18 years ago*** empty log message ***
Jim Meyering [Sat, 27 Aug 2005 18:12:58 +0000 (18:12 +0000)]
*** empty log message ***

18 years agoRevert the du.c part of the change from 2005-07-02:
Jim Meyering [Sat, 27 Aug 2005 18:12:54 +0000 (18:12 +0000)]
Revert the du.c part of the change from 2005-07-02:
That change (to reopen stdin on F for --files0-from=F) made it so
--exclude-from=- and --files0-from=F would not work together.

18 years ago*** empty log message ***
Jim Meyering [Sat, 27 Aug 2005 16:12:25 +0000 (16:12 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Sat, 27 Aug 2005 16:12:16 +0000 (16:12 +0000)]
*** empty log message ***

18 years agoUse `#error' rather than a string literal to provoke failure.
Jim Meyering [Sat, 27 Aug 2005 16:11:43 +0000 (16:11 +0000)]
Use `#error' rather than a string literal to provoke failure.

18 years ago*** empty log message ***
Jim Meyering [Thu, 25 Aug 2005 16:28:21 +0000 (16:28 +0000)]
*** empty log message ***

18 years agoInclude <config.h>.
Jim Meyering [Thu, 25 Aug 2005 16:28:18 +0000 (16:28 +0000)]
Include <config.h>.
Otherwise, we'd lose LARGEFILE support in any file using e.g. "fcntl--.h"

18 years ago*** empty log message ***
Jim Meyering [Wed, 24 Aug 2005 15:25:33 +0000 (15:25 +0000)]
*** empty log message ***

18 years ago(stdopen): Revert to iterating over descriptors, but
Jim Meyering [Wed, 24 Aug 2005 15:25:29 +0000 (15:25 +0000)]
(stdopen): Revert to iterating over descriptors, but
rather than using fstat, use fcntl with its F_GETFD flag, which
is more efficient.  Unlike the 2-syscall dup-close approach,
this one doesn't apply any unnecessary pressure on the file
descriptor pool -- thus there is one fewer way to fail.

18 years agoadjust prototype
Jim Meyering [Wed, 24 Aug 2005 13:01:31 +0000 (13:01 +0000)]
adjust prototype
Include stdbool.h.

18 years ago*** empty log message ***
Jim Meyering [Tue, 23 Aug 2005 19:42:08 +0000 (19:42 +0000)]
*** empty log message ***

18 years agoUpdate from gnulib.
Jim Meyering [Tue, 23 Aug 2005 19:41:09 +0000 (19:41 +0000)]
Update from gnulib.

18 years ago.
Jim Meyering [Tue, 23 Aug 2005 16:58:04 +0000 (16:58 +0000)]
.

18 years ago*** empty log message ***
Jim Meyering [Tue, 23 Aug 2005 16:57:42 +0000 (16:57 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Tue, 23 Aug 2005 16:52:13 +0000 (16:52 +0000)]
*** empty log message ***

18 years ago(sc_useless_cpp_parens): New rule.
Jim Meyering [Tue, 23 Aug 2005 16:52:09 +0000 (16:52 +0000)]
(sc_useless_cpp_parens): New rule.
(syntax-check-rules): Add it.

18 years ago*** empty log message ***
Jim Meyering [Tue, 23 Aug 2005 16:51:07 +0000 (16:51 +0000)]
*** empty log message ***

18 years ago.
Jim Meyering [Tue, 23 Aug 2005 16:48:07 +0000 (16:48 +0000)]
.

18 years ago* .x-sc_useless_cpp_parens: New empty file.
Jim Meyering [Tue, 23 Aug 2005 16:46:04 +0000 (16:46 +0000)]
* .x-sc_useless_cpp_parens: New empty file.
* Makefile.am (EXTRA_DIST): Add it.

18 years ago*** empty log message ***
Jim Meyering [Tue, 23 Aug 2005 16:39:25 +0000 (16:39 +0000)]
*** empty log message ***

18 years agoUse `5.3.1-cvs' as the version string.
Jim Meyering [Tue, 23 Aug 2005 16:38:45 +0000 (16:38 +0000)]
Use `5.3.1-cvs' as the version string.

18 years ago*** empty log message ***
Jim Meyering [Tue, 23 Aug 2005 15:28:30 +0000 (15:28 +0000)]
*** empty log message ***

18 years agoRemove unnecessary parens in `#if defined (SYMBOL)' expressions.
Jim Meyering [Tue, 23 Aug 2005 15:28:22 +0000 (15:28 +0000)]
Remove unnecessary parens in `#if defined (SYMBOL)' expressions.

18 years ago*** empty log message ***
Jim Meyering [Tue, 23 Aug 2005 15:09:23 +0000 (15:09 +0000)]
*** empty log message ***

18 years agoRemove unnecessary parens in `#if defined (SYMBOL)' expressions.
Jim Meyering [Tue, 23 Aug 2005 15:09:13 +0000 (15:09 +0000)]
Remove unnecessary parens in `#if defined (SYMBOL)' expressions.

18 years agoRemove unnecessary parens in `#if defined (SYMBOL)' expressions.
Jim Meyering [Tue, 23 Aug 2005 15:06:55 +0000 (15:06 +0000)]
Remove unnecessary parens in `#if defined (SYMBOL)' expressions.

18 years ago*** empty log message ***
Jim Meyering [Tue, 23 Aug 2005 15:06:50 +0000 (15:06 +0000)]
*** empty log message ***

18 years agoRemove unnecessary parens in `#if defined (SYMBOL)' expressions.
Jim Meyering [Tue, 23 Aug 2005 15:05:54 +0000 (15:05 +0000)]
Remove unnecessary parens in `#if defined (SYMBOL)' expressions.

18 years agoInclude <float.h> unconditionally.
Jim Meyering [Tue, 23 Aug 2005 15:05:01 +0000 (15:05 +0000)]
Include <float.h> unconditionally.

18 years ago(print_uptime): Remove unnecessary parens in `#if defined (SYMBOL)' expressions.
Jim Meyering [Tue, 23 Aug 2005 15:03:48 +0000 (15:03 +0000)]
(print_uptime): Remove unnecessary parens in `#if defined (SYMBOL)' expressions.

18 years ago(do_link): If ln is invoked with --interactive (-i),
Jim Meyering [Mon, 22 Aug 2005 10:31:55 +0000 (10:31 +0000)]
(do_link): If ln is invoked with --interactive (-i),
encounters an existing destination file, and gets an affirmative
response, then first try to unlink the destination file rather
than simply failing.  Suggestion from Karl Berry.

18 years ago*** empty log message ***
Jim Meyering [Mon, 22 Aug 2005 10:31:34 +0000 (10:31 +0000)]
*** empty log message ***

18 years ago(xwrite_stdout): Rename from xwrite. Remove always-equal-to-STDOUT_FILENO
Jim Meyering [Mon, 22 Aug 2005 10:31:17 +0000 (10:31 +0000)]
(xwrite_stdout): Rename from xwrite.  Remove always-equal-to-STDOUT_FILENO
parameter and associated assertion.  Adjust all callers.

18 years ago*** empty log message ***
Jim Meyering [Sun, 21 Aug 2005 16:08:57 +0000 (16:08 +0000)]
*** empty log message ***

18 years ago(main): Declare `target_directory' with const attribute.
Jim Meyering [Sun, 21 Aug 2005 16:08:53 +0000 (16:08 +0000)]
(main): Declare `target_directory' with const attribute.

18 years ago*** empty log message ***
Jim Meyering [Sun, 21 Aug 2005 16:06:16 +0000 (16:06 +0000)]
*** empty log message ***

18 years ago(time_style): Add `const' attribute.
Jim Meyering [Sun, 21 Aug 2005 16:06:06 +0000 (16:06 +0000)]
(time_style): Add `const' attribute.
(tot_dui): Remove unnecessary (and too-short) initializer list.

18 years agoImport from gnulib.
Paul Eggert [Fri, 19 Aug 2005 21:14:12 +0000 (21:14 +0000)]
Import from gnulib.
(__restrict_arr): Don't define to __restrict if __cplusplus is defined.

18 years ago*** empty log message ***
Jim Meyering [Fri, 19 Aug 2005 17:18:08 +0000 (17:18 +0000)]
*** empty log message ***

18 years ago(stdopen): Return `bool' so caller can detect failure.
Jim Meyering [Fri, 19 Aug 2005 17:18:04 +0000 (17:18 +0000)]
(stdopen): Return `bool' so caller can detect failure.

18 years ago*** empty log message ***
Jim Meyering [Thu, 18 Aug 2005 22:29:43 +0000 (22:29 +0000)]
*** empty log message ***

18 years ago(usage) [-b,-t]: Ensure that there are at least two
Jim Meyering [Thu, 18 Aug 2005 22:26:42 +0000 (22:26 +0000)]
(usage) [-b,-t]: Ensure that there are at least two
spaces between each option and the corresponding description -- this
lets help2man format entries properly.  Reported by Edward Welbourne.

18 years ago*** empty log message ***
Jim Meyering [Wed, 17 Aug 2005 20:50:21 +0000 (20:50 +0000)]
*** empty log message ***

18 years ago(usage): Fix typo s/POS 2/POS2/.
Jim Meyering [Wed, 17 Aug 2005 20:50:17 +0000 (20:50 +0000)]
(usage): Fix typo s/POS 2/POS2/.

18 years ago*** empty log message ***
Jim Meyering [Wed, 17 Aug 2005 20:49:48 +0000 (20:49 +0000)]
*** empty log message ***

18 years agosync from gnulib
Jim Meyering [Wed, 17 Aug 2005 20:29:37 +0000 (20:29 +0000)]
sync from gnulib

18 years ago*** empty log message ***
Jim Meyering [Wed, 17 Aug 2005 20:20:37 +0000 (20:20 +0000)]
*** empty log message ***

18 years agoRemove terminating "\n"s once again.
Jim Meyering [Wed, 17 Aug 2005 20:20:33 +0000 (20:20 +0000)]
Remove terminating "\n"s once again.
Automatically add them whenever EXIT != 0.

18 years ago*** empty log message ***
Jim Meyering [Wed, 17 Aug 2005 19:56:48 +0000 (19:56 +0000)]
*** empty log message ***

18 years ago[neg-secs]: New test for today's strftime.c bug fix.
Jim Meyering [Wed, 17 Aug 2005 19:56:44 +0000 (19:56 +0000)]
[neg-secs]: New test for today's strftime.c bug fix.

18 years ago*** empty log message ***
Jim Meyering [Wed, 17 Aug 2005 19:55:57 +0000 (19:55 +0000)]
*** empty log message ***

18 years agoMake the %s format (seconds since the epoch) work for a negative
Jim Meyering [Wed, 17 Aug 2005 19:55:52 +0000 (19:55 +0000)]
Make the %s format (seconds since the epoch) work for a negative
number and when used with a zero-padded field width, e.g. %015s.

(my_strftime): Move the `do_number_sign_and_padding'
label so that it precedes the code to set `digits'.  Otherwise,
%0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
print `00-22'.  Now, it prints `-0022', as it should.

18 years ago* src/df.c (show_dev): New arg STAT_FILE.
Paul Eggert [Tue, 16 Aug 2005 20:33:57 +0000 (20:33 +0000)]
* src/df.c (show_dev): New arg STAT_FILE.

18 years ago(show_dev): New arg STAT_FILE. All uses changed.
Paul Eggert [Tue, 16 Aug 2005 20:33:40 +0000 (20:33 +0000)]
(show_dev): New arg STAT_FILE.  All uses changed.
This sometimes gives better results on networked file systems
that do not respect POSIX semantics.  Problem reported by
Bruno Haible.

18 years agoadd comment
Jim Meyering [Mon, 15 Aug 2005 13:05:58 +0000 (13:05 +0000)]
add comment

18 years agouse ERR_SUBST to get around fact that the diagnostic
Jim Meyering [Mon, 15 Aug 2005 13:03:57 +0000 (13:03 +0000)]
use ERR_SUBST to get around fact that the diagnostic
you get on a system with 32-bit time_t is not the same as
the one you get for a system where it's 64 bits wide:
- date: time 72057594037927935 is out of range
+ date: invalid date `@72057594037927935'

18 years ago(uninit-64): New test for today's date.c fix.
Jim Meyering [Mon, 15 Aug 2005 13:01:50 +0000 (13:01 +0000)]
(uninit-64): New test for today's date.c fix.
Rewrite all other OUT strings to include the terminating "\n".

18 years ago*** empty log message ***
Jim Meyering [Mon, 15 Aug 2005 12:16:58 +0000 (12:16 +0000)]
*** empty log message ***

18 years agoDon't print uninitialized data (or anything else) to stdout
Jim Meyering [Mon, 15 Aug 2005 12:16:54 +0000 (12:16 +0000)]
Don't print uninitialized data (or anything else) to stdout
upon localtime failure.

(show_date): Remove stray `puts (buf);' (debugging?)
from the 2004-02-02 change.

18 years agomake log entry more accurate
Jim Meyering [Mon, 15 Aug 2005 09:11:17 +0000 (09:11 +0000)]
make log entry more accurate

18 years ago*** empty log message ***
Jim Meyering [Mon, 15 Aug 2005 08:41:24 +0000 (08:41 +0000)]
*** empty log message ***

18 years ago(join invocation): Itemize the defaults.
Jim Meyering [Mon, 15 Aug 2005 08:41:21 +0000 (08:41 +0000)]
(join invocation): Itemize the defaults.

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 15:03:59 +0000 (15:03 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 15:02:49 +0000 (15:02 +0000)]
*** empty log message ***

18 years ago(usage): Fix typo s/formated/formatted/ reported by Norbert Kiesel
Jim Meyering [Sun, 14 Aug 2005 15:02:45 +0000 (15:02 +0000)]
(usage): Fix typo s/formated/formatted/ reported by Norbert Kiesel

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 15:02:23 +0000 (15:02 +0000)]
*** empty log message ***

18 years ago.
Jim Meyering [Sun, 14 Aug 2005 14:31:23 +0000 (14:31 +0000)]
.

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 14:29:28 +0000 (14:29 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 14:22:23 +0000 (14:22 +0000)]
*** empty log message ***

18 years agoDon't include "timespec.h".
Jim Meyering [Sun, 14 Aug 2005 14:22:00 +0000 (14:22 +0000)]
Don't include "timespec.h".

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 14:20:53 +0000 (14:20 +0000)]
*** empty log message ***

18 years agoUse one fewer file descriptor in a common case.
Jim Meyering [Sun, 14 Aug 2005 14:18:07 +0000 (14:18 +0000)]
Use one fewer file descriptor in a common case.

Include "fd-reopen.h", rather than "fcntl--.h".
Use fd_reopen rather than open.

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 14:17:54 +0000 (14:17 +0000)]
*** empty log message ***

18 years agoInclude "timespec.h".
Jim Meyering [Sun, 14 Aug 2005 14:17:48 +0000 (14:17 +0000)]
Include "timespec.h".
(age_of): Return the nanoseconds part of the timestamp, if available.
(binary_operator) [-nt, -ot]: Use nanosecond values to break ties.

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 11:16:15 +0000 (11:16 +0000)]
*** empty log message ***

18 years ago(long_time_expected_width): Revert last change, just to
Jim Meyering [Sun, 14 Aug 2005 08:30:25 +0000 (08:30 +0000)]
(long_time_expected_width): Revert last change, just to
be paranoid, and add a comment explaining why.
Paul Eggert mentioned the possibility.