Commit Graph
24019 Commits
Author SHA1 Message Date
Jim Meyering 6fb6c5e33c . 2004-06-28 08:17:34 +00:00
Jim Meyering 4e44624881 *** empty log message *** 2004-06-27 09:43:31 +00:00
Jim Meyering 3d14a0d604 See whether a trailing slash is followed too far. 2004-06-27 09:42:45 +00:00
Jim Meyering 679ce113e4 Fix a bug: formerly, if d/x was a directory and x a file, "ln x
d/" incorrectly created a link d/x/x.  It also saves some system
	calls.

	Document the fix.
2004-06-27 09:41:46 +00:00
Jim Meyering 54cdcb1a1a Fix a bug: formerly, if d/x was a directory and x a file, "ln x
d/" incorrectly created a link d/x/x.  It also saves some system
calls.

(main): Don't append basename to dest if this
results in an existing directory name.
2004-06-27 09:41:23 +00:00
Jim Meyering 4e6aaa2732 put \n in format string, not in actual diagnostic 2004-06-26 13:12:42 +00:00
Jim Meyering ce5019db7c *** empty log message *** 2004-06-26 13:09:39 +00:00
Jim Meyering b5110a1746 (main): When given no arguments, print the standard
"missing operand\nTry printf --help..." message -- to be consistent.
2004-06-26 13:09:17 +00:00
Jim Meyering 717b102865 *** empty log message *** 2004-06-26 12:43:49 +00:00
Jim Meyering cf0071c5b0 (main): Add \n at the end of message output via fprintf. 2004-06-26 12:43:44 +00:00
Jim Meyering 164aaa2abb Add Basque (eu). 2004-06-26 12:37:01 +00:00
Jim Meyering cba6867b07 *** empty log message *** 2004-06-26 08:49:14 +00:00
Jim Meyering fccd3839b3 Add Basque (eu). 2004-06-26 08:49:11 +00:00
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