Jim Meyering
4d09de4e63
(main): Call parse_long_options only if POSIXLY_CORRECT
...
is *not* set. Reported by Frank T Lofaro.
1997-09-17 13:04:31 +00:00
Jim Meyering
e52535af00
*** empty log message ***
1997-09-16 20:03:02 +00:00
Jim Meyering
3a0056aa09
.
1997-09-16 19:59:02 +00:00
Jim Meyering
3e9c67e385
tweak message strings
1997-09-15 18:46:42 +00:00
Jim Meyering
821279c98b
tweak message strings
1997-09-15 18:45:47 +00:00
Jim Meyering
312d78eca6
(install_handler): Rename from sig_handler.
1997-09-15 14:18:15 +00:00
Jim Meyering
c2bbb8e875
(do_link): Perform S_ISLNK test only if lstat succeeded.
1997-09-15 14:02:47 +00:00
Jim Meyering
b4204ff74c
(remove_cwd_entries): Don't free entries -- they're alloca'd, now.
1997-09-15 13:24:43 +00:00
Jim Meyering
45853bf653
Use memcpy, not stpncpy. This fixes a UMR.
1997-09-15 12:34:25 +00:00
Jim Meyering
eaa1924e36
Write implementation overview.
1997-09-15 03:56:19 +00:00
Jim Meyering
e33f73ba8d
remove obsolete comment
1997-09-15 03:31:42 +00:00
Jim Meyering
e01071c1d7
tweak comment
1997-09-15 03:24:03 +00:00
Jim Meyering
6d77a9d346
(full_filename): Use realloc, not xrealloc.
1997-09-15 03:23:12 +00:00
Jim Meyering
5a74e8ae4e
(equal): Use STREQ (form system.h) instead.
...
(siginfo_handler): New function to handle SIGINFO/SIGUSR1.
(handle_sig): New function.
(main): Use handle_sig instead of open-coding it.
Handle SIGINFO (or SIGUSR1 if that's not defined).
(print_stats): Move definition to precede first reference.
Remove prototype.
1997-09-14 17:42:33 +00:00
Jim Meyering
cb628f9be3
Don't include signal.h.
1997-09-14 16:24:17 +00:00
Jim Meyering
9aef26e3d0
(main) [--traditional]: Don't give diagnostic about there
...
being more than three arguments if there are *no* arguments specified.
Reported by Jochen Hein.
1997-09-14 16:03:58 +00:00
Jim Meyering
d5f56f9cd7
(struct col_info) [valid_len]: Rename from `valid' which conflicted
...
with the macro in locale.h of SunOS4.1.4.
1997-09-14 04:16:37 +00:00
Jim Meyering
22c2c69da4
(print_horizontal): Add some non-essential curly braces.
1997-09-14 04:08:52 +00:00
Jim Meyering
d9f0902259
(print_many_per_line): Add some non-essential curly braces.
1997-09-14 04:07:28 +00:00
Jim Meyering
548bd7cf11
s/__inline/inline/.
1997-09-14 03:41:26 +00:00
Jim Meyering
b208989a75
(PARAMS): Define.
...
(rm): Guard prototype in forward dcl with PARAMS.
1997-09-14 03:39:26 +00:00
Jim Meyering
561028f4ac
merge from rm-fix branch
1997-09-14 02:00:48 +00:00
Jim Meyering
16f5d0a11b
Add new option: --verbose (-v).
...
From Andreas Schwab.
1997-09-11 15:45:20 +00:00
Jim Meyering
2d93d34275
[!STDC_HEADERS]: Declare malloc.
1997-09-02 01:51:39 +00:00
Jim Meyering
ba1852e6f1
(do_link): Form destination file name (when DEST is a directory) before
...
checking whether SOURCE and DEST are the same file.
1997-09-01 20:31:00 +00:00
Jim Meyering
bb22f10c37
(main): New option --lookup (-l).
...
(print_entry): Only call canon_host if user explicitly asks for it.
(usage): Describe --lookup.
From Galen Hazelwood.
1997-09-01 02:08:58 +00:00
Jim Meyering
a98be62643
tweak comment
1997-08-31 22:10:46 +00:00
Jim Meyering
f5d34cdce9
(change_file_group): Call describe_change with a 3-state argument.
...
(describe_change): Report whether the operation was successful,
a failure, or that the request was a no-op.
Before, running `chown --verb bin /' as non-root reported
group of / changed to bin
chgrp: you are not a member of group `bin': Not owner
1997-08-31 22:07:53 +00:00
Jim Meyering
72bf7437cb
(change_file_owner): Call describe_change with a 3-state argument.
...
(describe_change): Report whether the operation was successful,
a failure, or that the request was a no-op.
Before, running `chown --verb bin /' as non-root reported
owner of / changed to bin
chown: /: Not owner
1997-08-31 22:06:10 +00:00
Jim Meyering
0f3d7f59a9
[!STDC_HEADERS]: Declare malloc.
1997-08-31 13:00:00 +00:00
Jim Meyering
c3cdbb8d3f
(change_file_mode): Call describe_change with a 3-state argument.
...
(describe_change): Report whether the operation was successful,
a failure, or that the request was a no-op.
Before, running `chmod --verb u-r /' as non-root reported
mode of / changed to 0355 (-wxr-xr-x)
chmod: /: Not owner
Reported by Philippe Schnoebelen <phs@hobbes.fing.edu.uy >
1997-08-31 12:57:15 +00:00
Jim Meyering
b5ef7a4be7
(show_date): Don't hang if strftime produces an empty string.
1997-08-18 19:50:35 +00:00
Jim Meyering
8075bc7e8a
s/\<_ (/_(/g
1997-08-03 02:49:43 +00:00
Jim Meyering
c091f9835b
indent
1997-08-03 02:04:28 +00:00
Jim Meyering
6993b5780b
.
1997-08-03 01:54:34 +00:00
Jim Meyering
910502b044
Add new option: --reference=FILE.
1997-07-29 03:05:45 +00:00
Jim Meyering
2ff9982e42
Add new option: --reference=FILE.
1997-07-29 03:04:58 +00:00
Jim Meyering
42e5deb36c
(usage): tweak -p descr
1997-07-29 02:55:45 +00:00
Jim Meyering
b78d012e9d
Declare pointer parameters const as appropriate.
1997-07-29 02:06:25 +00:00
Jim Meyering
43e8e1245e
(main): New option --preserve-timestamps (-p).
...
(install_file_in_file): Change timestamps if requested.
(change_timestamps): New function.
(usage): Describe --preserve-timestamps.
Correct --mode description.
From Galen Hazelwood.
1997-07-29 01:57:24 +00:00
Jim Meyering
afc73d862b
(parse_obsolescent_option): #ifdef-out portability warning.
1997-07-22 01:26:35 +00:00
Jim Meyering
f1ee29eac3
(checkfp): tweak comment
1997-07-19 15:08:53 +00:00
Jim Meyering
dddf0d13df
(checkfp): Print the `disorder' message. Include both
...
the number and the contents of the first out-of-order line, in addition
to the file name. Change meaning of return value.
(check): Don't print disorder message here.
Adjust test of checkfp's return value.
Feature suggestion from Karl Heuer.
1997-07-19 15:04:59 +00:00
Jim Meyering
08bc7404bc
This means that if multiple users are given on the command line, the
...
error return code is that of the last, so earlier failures can't be
detected.
1997-07-16 13:46:53 +00:00
Jim Meyering
74ed7c9f94
Exit with status from `id' command.
...
Don't print `$name : $groups' if id fails.
Reported by Austin Donnelly.
1997-07-16 12:49:36 +00:00
Jim Meyering
566451e5be
remove fixme
1997-07-13 23:37:57 +00:00
Jim Meyering
25ec733e8d
Include xstrtoul.h.
...
Remove global variable, unit_size.
(atou): Remove now-unused function.
(parse_unit): Likewise.
(string_to_ull): New function.
(head): Take new parameter, count_lines. Use it instead of unit_size.
Update callers.
(head_file): Likewise.
(main): Use string_to_ull, not atou/parse_unit.
1997-07-13 21:59:34 +00:00
Jim Meyering
b05ff2249b
Rename lots of `this' locals.
...
Make some parameters `const'.
(who): Update read_utmp caller.
(search_entries): Take additional param: utmp_buf.
Update read_utmp caller.
(who_am_i): Update read_utmp caller.
1997-07-13 04:13:40 +00:00
Jim Meyering
7fe4db1451
(users): Update read_utmp caller.
1997-07-13 03:57:00 +00:00
Jim Meyering
393e4a8c36
(uptime): Update read_utmp caller.
1997-07-13 03:56:29 +00:00