Commit Graph
22888 Commits
Author SHA1 Message Date
Jim Meyering 1aee773227 (usage): Correct description of `-t FD'. The file
descriptor, FD, is no longer optional.  Reported by Ton Nijkes.
2004-06-22 14:55:30 +00:00
Jim Meyering 4cadec1850 *** empty log message *** 2004-06-22 14:55:09 +00:00
Jim Meyering 452ad0fd6f *** empty log message *** 2004-06-22 12:50:06 +00:00
Jim Meyering e1de0b295e Fix bug: GNU 'ls' didn't count columns correctly if user or group
names contained multibyte characters where the column count
differed from the byte count.  This patch also corrects
some comments.

(format_user_or_group): New function, which counts columns correctly.
(format_user, format_group): Use it.
(format_user_or_group_width): New function, which counts columns correctly.
(format_user_width, format_group_width): Use it.
2004-06-22 12:50:01 +00:00
Jim Meyering c18f06d7b0 *** empty log message *** 2004-06-22 06:16:11 +00:00
Jim Meyering 0d1ee08290 *** empty log message *** 2004-06-21 20:41:02 +00:00
Jim Meyering ecc187a433 Quote "$PATH" in PATH=$PATH. 2004-06-21 20:40:58 +00:00
Jim Meyering 0e5a82e69c *** empty log message *** 2004-06-21 17:10:05 +00:00
Jim Meyering d55a463d8b When running as root, be sure to propagate
PATH through to the process we exec as non-root.
2004-06-21 17:06:58 +00:00
Jim Meyering 16e04fa77e *** empty log message *** 2004-06-21 17:06:11 +00:00
Jim Meyering 2ea2857ed4 . 2004-06-21 15:36:56 +00:00
Jim Meyering 470e32ceec *** empty log message *** 2004-06-21 15:35:16 +00:00
Jim Meyering f53347b996 (main): Don't segfault when calculating the
expected number of operands for `mknod NAME'.
2004-06-21 15:35:12 +00:00
Jim Meyering 777a96db68 Adjust to new diagnostics. 2004-06-21 15:04:54 +00:00
Jim Meyering 260a903a50 . 2004-06-21 15:03:45 +00:00
Jim Meyering 1ce7b61d0e (main): Standardize on the diagnostics given when someone gives
too few operands ("missing operand after `xxx'") or
too many operands ("extra operand `xxx'").
Include "quote.h" and/or "error.h" if it wasn't already being included.
2004-06-21 15:03:35 +00:00
Jim Meyering 110be46897 Standardize on the diagnostics given when someone gives
too few operands ("missing operand after `xxx'") or
too many operands ("extra operand `xxx'").
Include "quote.h" and/or "error.h" if it wasn't already being included.
(do_copy): Likewise.
2004-06-21 15:02:28 +00:00
Jim Meyering bddcb0eab2 Standardize on the diagnostics given when someone gives
too few operands ("missing operand after `xxx'") or
too many operands ("extra operand `xxx'").
Include "quote.h" and/or "error.h" if it wasn't already being included.
(add_file_name, main): Likewise.
2004-06-21 15:02:14 +00:00
Jim Meyering f04e77d364 Standardize on the diagnostics given when someone gives
too few operands ("missing operand after `xxx'") or
too many operands ("extra operand `xxx'").
Include "quote.h" and/or "error.h" if it wasn't already being included.
(beyond, main): Likewise.
2004-06-21 15:01:54 +00:00
Jim Meyering a20574f431 (input_seek_errno): Declare file-scoped variable as static. 2004-06-20 14:24:12 +00:00
Jim Meyering 9ad2bf0af5 . 2004-06-20 14:02:47 +00:00
Jim Meyering ffc81fb81f *** empty log message *** 2004-06-20 14:01:44 +00:00
Jim Meyering fb2a3c8a63 Remove declaration of yesno.
Instead, include yesno.h.
2004-06-20 13:47:24 +00:00
Jim Meyering 6c97ac18ef (obstack_base): Cast to (void *), per documentation. 2004-06-20 13:44:53 +00:00
Jim Meyering 1c7b9917a2 Include yesno.h.
(top_dir): Remove now-unnecessary cast of obstack_base.
(pop_dir): Likewise.
(full_filename_): Likewise.
2004-06-20 13:44:12 +00:00
Jim Meyering 1d5cfee4d8 *** empty log message *** 2004-06-20 13:42:43 +00:00
Jim Meyering 7ce1ce7e7d *** empty log message *** 2004-06-20 13:42:32 +00:00
Jim Meyering 19e8479c86 (libfetish_a_SOURCES): Add yesno.h. 2004-06-20 13:42:30 +00:00
Jim Meyering 4a80ae25c1 *** empty log message *** 2004-06-20 13:42:14 +00:00
Jim Meyering 5fd9b42ed3 Include "yesno.h". 2004-06-20 13:42:11 +00:00
Jim Meyering 8ccbd5f65f *** empty log message *** 2004-06-20 13:41:24 +00:00
Jim Meyering 3bd1b67643 *** empty log message *** 2004-06-20 06:57:02 +00:00
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