Commit Graph
18756 Commits
Author SHA1 Message Date
Jim Meyering 77ab044bde *** empty log message *** 2004-06-25 21:11:01 +00:00
Jim Meyering 2dc7903c37 (gl_AFS): Use AC_ARG_WITH instead of ancient, hard-coded
AC_MSG_CHECKING/AC_MSG_RESULT etc.  From Tim Waugh.
2004-06-25 21:10:55 +00:00
Jim Meyering 02b3d31421 *** empty log message *** 2004-06-25 07:14:17 +00:00
Jim Meyering 9338e5d901 Add test for ln subscript error. 2004-06-25 07:14:08 +00:00
Jim Meyering 90f1d430c9 *** empty log message *** 2004-06-25 06:58:53 +00:00
Jim Meyering cb9c7daeea (do_link): Remove unnecessary call to lstat.
(main): Avoid subscript error when the destination is "".
2004-06-25 06:51:51 +00:00
Jim Meyering e18cbbebac *** empty log message *** 2004-06-24 05:54:01 +00:00
Jim Meyering affbbb2238 (obstack_base): Fix parentheses. From Paul Eggert. 2004-06-24 05:53:54 +00:00
Jim Meyering 678207c7d0 . 2004-06-23 15:09:27 +00:00
Jim Meyering cf38364839 *** empty log message *** 2004-06-23 15:07:22 +00:00
Jim Meyering 112efa81f2 Replace all occurrences of `(exit N); exit' with
`(exit N); exit N'.  Otherwise, those many tests could exit with
improper exit status when exiting via e.g., a trapped interrupt.
Thanks to a report from Bob Proulx.
2004-06-23 15:07:00 +00:00
Jim Meyering 11f05299f9 *** empty log message *** 2004-06-23 14:48:28 +00:00
Jim Meyering 22191da8fb (idle_string, print_user): New arg boottime,
specifying the most recent boot time.  All uses changed.
(idle_string) Consider a line to be "old" if it hasn't been used
since the last boot time.  Watch out for overflow when computing
times, and for times in the future.
(idle_string): Record latest boot time.
2004-06-23 14:48:16 +00:00
Jim Meyering 3ba733e19d *** empty log message *** 2004-06-22 15:04:52 +00:00
Jim Meyering 227b2e9daa . 2004-06-22 15:02:59 +00:00
Jim Meyering 6eb57b59ad The 2004-06-19 fix for who and pinky was incomplete, as ctime
has undefined behavior if the year precedes -999 or follows 9999.
Since we have to stop using ctime anyway, we might as well use
strftime and fix the FIXME, and support internationalized dates.

* src/who.c: Include "hard-locale.h".
(time_format, time_format_width): New vars.
(time_string, print_line): Use them.
(main): Set them.
(time_string): Use localtime + strftime instead of
ctime, to avoid problems with years before -999 or after 9999.
* src/pinky.c: Likewise.
2004-06-22 15:00:53 +00:00
Jim Meyering f581b96e7f The 2004-06-19 fix for who and pinky was incomplete, as ctime
has undefined behavior if the year precedes -999 or follows 9999.
Since we have to stop using ctime anyway, we might as well use
strftime and fix the FIXME, and support internationalized dates.

Include "hard-locale.h".
(time_format, time_format_width): New vars.
(time_string, print_line): Use them.
(main): Set them.
(time_string): Use localtime + strftime instead of
ctime, to avoid problems with years before -999 or after 9999.
2004-06-22 14:56:46 +00:00
Jim Meyering f1317a4060 *** empty log message *** 2004-06-22 14:55:34 +00:00
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