Commit Graph
18706 Commits
Author SHA1 Message Date
Jim Meyering 0171abddcd Don't dump core if ctime returns NULL; this is possible on
hosts with 64-bit time_t and 32-bit int.

Include "inttostr.h".
(time_string): New function, copied from who.c.
(print_entry): Use it.
2004-06-20 06:56:52 +00:00
Jim Meyering f2d779e87c Don't dump core if ctime returns NULL; this is possible on
hosts with 64-bit time_t and 32-bit int.

Include "inttostr.h".
(time_string): If ctime fails, print the raw time as an integer
instead of dumping core.
2004-06-20 06:53:05 +00:00
Jim Meyering b3a6653a60 *** empty log message *** 2004-06-20 06:51:19 +00:00
Jim Meyering 837232227c (print_line): Don't truncate user names at 8 bytes.
Problem reported by Guido Leenders in:
http://lists.gnu.org/archive/html/bug-coreutils/2004-06/msg00056.html
2004-06-20 06:49:42 +00:00
Jim Meyering 4614bf4a63 *** empty log message *** 2004-06-19 12:28:16 +00:00
Jim Meyering 90c0e02711 Remove all S_IS* and S_IF* definitions.
Instead, just include "stat-macros.h".
2004-06-19 12:28:02 +00:00
Jim Meyering 77e4428e58 Remove all S_IS* and S_IF* definitions.
Instead, just include "stat-macros.h".
2004-06-19 12:26:53 +00:00
Jim Meyering 8836ff8b3c Remove all S_IS* and S_IF* definitions.
Instead, just include "stat-macros.h".
2004-06-19 12:25:31 +00:00
Jim Meyering 0056eb663e Remove all S_IS* and S_IF* definitions.
Instead, just include "stat-macros.h".
2004-06-19 12:25:04 +00:00
Jim Meyering bb988c4d3c Remove all S_IS* and S_IF* definitions.
Instead, just include "stat-macros.h".
2004-06-19 12:24:36 +00:00
Jim Meyering 032ddfd196 *** empty log message *** 2004-06-19 12:23:43 +00:00
Jim Meyering dcbdb9f887 Add S_IS* definitions from filemode.c.
(S_ISCTG): Define to zero if not already defined.
(S_ISOFD): Likewise.
(S_ISOFL): Likewise.
2004-06-19 12:23:38 +00:00
Jim Meyering 1594fb914b *** empty log message *** 2004-06-19 09:24:12 +00:00
Jim Meyering 927e4d998e (case_GETOPT_VERSION_CHAR): Switch back to using GNU_PACKAGE (from
PACKAGE) once again.  This restores `GNU' to the parenthesized package
name in --version output.  Before, the first argument from AC_INIT,
`GNU coreutils', would be propagated to the PACKAGE variable.  Now,
`GNU ' is trimmed.  Reported by Richard Stallman.
2004-06-19 09:23:52 +00:00
Jim Meyering 877ab26488 *** empty log message *** 2004-06-17 21:32:49 +00:00
Jim Meyering a8253c6acf (to_uchar): Rename function from `uchar'. The latter
would clash with a typedef in Tru64's <sys/types.h>.  From Albert Chin.
2004-06-17 21:32:45 +00:00
Jim Meyering fb7e0d8840 . 2004-06-17 14:48:08 +00:00
Jim Meyering d01eefd2d9 . 2004-06-17 14:42:05 +00:00
Jim Meyering 4ec1048283 *** empty log message *** 2004-06-17 14:41:34 +00:00
Jim Meyering 05c93d0212 *** empty log message *** 2004-06-17 14:40:51 +00:00
Jim Meyering 65f4c6c6bf (yes invocation): "--" is now supported.
(false invocation, true invocation): --help and --version now
work unconditionally.
2004-06-17 14:38:52 +00:00
Jim Meyering 72f51d66bf (main): Recognize --help and --version even if POSIXLY_CORRECT is set. 2004-06-17 14:34:07 +00:00
Jim Meyering 7870fa1081 (main): Handle "--". 2004-06-17 13:09:21 +00:00
Jim Meyering 417a1e5850 *** empty log message *** 2004-06-17 06:46:39 +00:00
Jim Meyering 83e722f66c (GL_FUNC_GETCWD_PATH_MAX): Fix typo: getcwd
was being replaced when it shouldn't have been, and vice versa.
2004-06-17 06:46:33 +00:00
Jim Meyering 75e49a2b17 Remove special cases for POSIXLY_CORRECT when POSIX allows the GNU behavior.
(pr invocation, unlink invocation): Document this.
2004-06-15 21:56:15 +00:00
Jim Meyering 1f3a9c7888 *** empty log message *** 2004-06-15 21:55:28 +00:00
Jim Meyering f888b66ec1 *** empty log message *** 2004-06-15 18:04:54 +00:00
Jim Meyering a77a16acbf Adjust to the new semantics for \x if POSIXLY_CORRECT. 2004-06-15 18:04:47 +00:00
Jim Meyering ba01709da8 (main): Recognize --help, --version even if
POSIXLY_CORRECT.  POSIX does not specify any options, but it
does not prohibit options either, so "unlink" is like "expr" here.
2004-06-15 18:04:13 +00:00
Jim Meyering b10701b78e (parse_obsolescent_option): Support multiple file operands
even if POSIXLY_CORRECT, since POSIX does not require a diagnostic.
2004-06-15 18:00:58 +00:00
Jim Meyering 5afcf8697f (print_esc): Support \x, \u, \U even if POSIXLY_CORRECT,
since POSIX says the behavior is unspecified here.
(main): Recognize --help, --version even if
POSIXLY_CORRECT.  POSIX does not specify any options, but it
does not prohibit options either, so "printf" is like "expr" here.
2004-06-15 18:00:35 +00:00
Jim Meyering db2fa4fdcd Include "hard-locale.h".
(main): When in a non-POSIX locale, ignore POSIXLY_CORRECT, since
POSIX specifies the behavior only in the POSIX locale.
2004-06-15 18:00:20 +00:00
Jim Meyering 1391da81e0 (decode_switches): Pay attention to TABSIZE even if POSIXLY_CORRECT
is set.  POSIX reserves upper-case environment variables to the
implementation, so it's OK for ls to depend on TABSIZE.
2004-06-15 18:00:03 +00:00
Jim Meyering 5034e6bdb2 *** empty log message *** 2004-06-14 18:12:44 +00:00
Jim Meyering 78fcbf003a . 2004-06-14 17:21:55 +00:00
Jim Meyering 72d3fd67af *** empty log message *** 2004-06-14 17:20:29 +00:00
Jim Meyering 5956d74d8b (TESTS): Add pwd.
(BUILD_SRC_DIR): Define BUILD_SRC_DIR.
2004-06-14 17:20:19 +00:00
Jim Meyering 8b7c9bce6f *** empty log message *** 2004-06-14 17:19:52 +00:00
Jim Meyering 8812a1f12a New test, for fix of 2004-04-19. 2004-06-14 17:19:46 +00:00
Jim Meyering 4983ce64d8 *** empty log message *** 2004-06-14 14:40:21 +00:00
Jim Meyering b276da216d Remove declaration of euidaccess.
Instead, include "euidaccess.h".
2004-06-14 14:40:12 +00:00
Jim Meyering 773c6cc76b *** empty log message *** 2004-06-13 22:03:11 +00:00
Jim Meyering 5bca9fb5f3 (PIDSTR_DECL_AND_INIT): Don't assume pid_t fits in int.
(UT_ID) [!HAVE_STRUCT_XTMP_UT_ID]: Remove bogus comment,
as (sizeof "??") reliably returns 3.
(print_line): Guard against idle and pid being too long
(which is possible when printing headers).
(print_user): Allocate enough bytes for idlestr.  Use IDLESTR_LEN.
Avoid unnecessary cast of sizeof to int.
(make_id_equals_comment): Do not assume that UT_ID returns
a string; it might return a non-null-terminated array.
Use strncat instead.  It's not very often where strncat is
exactly what you want, but this is one of those rare cases.
2004-06-13 22:03:07 +00:00
Jim Meyering ae2fbd3ee7 *** empty log message *** 2004-06-12 08:07:41 +00:00
Jim Meyering 33c1c51c49 (extract_trimmed_name): Don't apply strchr to a
non-string; this leads to undefined behavior.
2004-06-12 08:07:30 +00:00
Jim Meyering b5e189c8ef *** empty log message *** 2004-06-12 08:06:12 +00:00
Jim Meyering 69cf3d4811 (list_entries_who): Don't output a trailing space. 2004-06-12 08:05:59 +00:00
Jim Meyering 7b4fe61887 *** empty log message *** 2004-06-09 15:13:33 +00:00
Jim Meyering 315eae50a5 (AC_FUNC_CALLOC): Remove use of AN_FUNCTION. 2004-06-09 15:13:27 +00:00