Jim Meyering
1ddf714c24
(parse_group): Fail when given an invalid group name.
...
Reported as Debian Bug#4119 via Erick Branderhorst (branderh@IAEhv.nl ).
Declare pointer parameters const as appropriate.
1996-08-17 03:13:46 +00:00
Jim Meyering
7532e57941
(main): Allow `+' in options like -+8 and -+13.
1996-08-04 14:15:25 +00:00
Jim Meyering
5b8cad3534
(main): Set minus_flag to zero in two places.
...
Otherwise, `nice --1 -3' would mistakenly do the equivalent of `nice --3'.
Thanks to Eric Backus <ericb@lsid.hp.com > for the test cases.
1996-08-03 04:23:43 +00:00
Jim Meyering
c87d06546a
(print_uptime) [HAVE_PROC_UPTIME]: Read from /proc/uptime.
...
From Ulrich Drepper.
1996-08-03 02:49:34 +00:00
Jim Meyering
d5aa78b540
(ST_NBLOCKS) [_CRAY]: Special case for Cray.
...
From by Johan Danielsson.
1996-08-02 03:25:39 +00:00
Jim Meyering
b10f778bf5
[LINK_TYPE]: Remove macro. NLS messages aren't
...
extracted from macros.
(link_type_string): New global variable to be used instead of
LINK_TYPE.
(main): Set it here.
(do_link): Use it (instead of macro) here.
1996-08-01 04:42:08 +00:00
Jim Meyering
d660831c5a
(DO_CHOWN): New macro -- derived from code in copy.
...
(copy): Use DO_CHOWN to assure that any newly-created symbolic
links have proper owner and group.
1996-07-31 04:39:25 +00:00
Jim Meyering
6932ade12e
(bindtextdomain) [!ENABLE_NLS]: Undefine to avoid
...
redefinition warnings on solaris.
(textdomain) [!ENABLE_NLS]: Likewise.
1996-07-27 22:29:01 +00:00
Jim Meyering
b294dd43a1
(unexpand): Move EOF check to follow code that
...
processes and generates output for pending spaces.
Before `printf ' ' |unexpand -t 1,2' generated no output.
1996-07-26 04:31:29 +00:00
Jim Meyering
7ce576ff06
(md5_check): Remove parameter, BINARY.
...
Rename local TYPE_FLAG to BINARY, so md5_file uses the binary mode
from the input stream rather than the one from the command line.
(main): Fail with a diagnostic if --binary or --text is specified
when verifying checksums.
Reported by Eli Zaretskii <eliz@is.elta.co.il >.
1996-07-26 04:11:21 +00:00
Jim Meyering
981f5ba012
(main): Fix typo in getopt_long string: s/n/h/.
...
Reported by Ken Pizzini.
1996-07-26 02:11:34 +00:00
Jim Meyering
0e180c8f19
(usage): Remove -h. It is not an option.
...
Reported by Ulrich Drepper.
1996-07-25 03:25:32 +00:00
Jim Meyering
63dece38a1
(usage): Correct typo (-iucl -> -iuclc) in usage message.
...
From Thomas Olsson <d95to@efd.lth.se >.
1996-07-21 14:51:02 +00:00
Jim Meyering
5f79c9e91b
(path_concat): Rewrite to return new parameter.
...
(do_copy): Update uses of path_concat to use new parameter.
Use that new pointer to compute correct offset for make_path_private.
Before, cp --recursive --parents SRC DEST failed when SRC was
an absolute file name. E.g.,
% cd /tmp; rm -rf d f; mkdir d; touch f; cp -PR /tmp/f d
cp: tmp: No such file or directory
Reported by Horst von Brand vonbrand@sleipnir.valparaiso.cl .
1996-07-20 05:24:09 +00:00
Jim Meyering
16c56c7d73
[_AIX]: Add #pragma alloca.
...
From Bernd Leibing <bernd.leibing@rz.uni-ulm.de >.
1996-07-19 03:56:23 +00:00
Jim Meyering
89495b81dd
(main): Initialize for internationalized message support:
...
call setlocale, bindtextdomain, and textdomain. Reported by
Michel Robitaille <robitail@IRO.UMontreal.CA >.
1996-07-19 02:59:54 +00:00
Jim Meyering
b734adb860
Include <sys/types.h> before system.h.
1996-07-18 04:14:51 +00:00
Jim Meyering
88db35dd77
Include <sys/types.h> before system.h.
1996-07-18 04:14:19 +00:00
Jim Meyering
6efc03fd41
Include <sys/types.h> before system.h.
1996-07-18 04:13:52 +00:00
Jim Meyering
e549af7279
(OFF_T_MAX): Remove definition.
...
(main): Compare against LONG_MAX rather than OFF_T_MAX.
1996-07-17 03:13:54 +00:00
Jim Meyering
03cc8c8ca3
[OFF_T_MAX]: Use (unsigned long)1' rather than (off_t)1'
...
so the left operand of the << isn't signed.
From Kaveh Ghazi.
1996-07-16 05:14:00 +00:00
Jim Meyering
9e10989282
(print_uptime): Reverse days' and day' in uptime message.
...
From Kaveh R. Ghazi.
1996-07-16 04:50:12 +00:00
Jim Meyering
9c53920ae6
(print_uptime): Use 0, not undefined errno in
...
couldn't-get-boot-time diagnostic. From Ulrich Drepper.
1996-07-15 01:07:16 +00:00
Jim Meyering
7d026dd508
[HAVE_LIMITS_H]: Include limits.h for INT_MAX.
...
[!INT_MAX]: Define it.
(main): Append INT_MAX to command-line-specified tab list to
ensure termination in unexpand's inner loop.
Derived from a patch from Keith Owens.
1996-07-14 22:28:52 +00:00
Jim Meyering
178f23fbb7
(unexpand): Fix bug that contributed to endless loop
...
when invoking `echo ' ' |unexpand -t 1,2': use print_tab_index, not
tab_index in inner flush_pend: while loop. From Keith Owens
<kaos@audio.apana.org.au >.
1996-07-14 22:24:28 +00:00
Jim Meyering
d38f60e27c
(usage): Sort option descriptions in dictionary order.
1996-07-14 12:54:12 +00:00
Jim Meyering
4d7a57cf34
(long_options): Add missing last line of NULL
...
entries. From Ralph Loader <loader@maths.ox.ac.uk >.
1996-07-14 12:37:24 +00:00
Jim Meyering
c58cd08bf9
(usage): Add a \' after \n' in usage message.
...
Otherwise, SunOS's /bin/cc chokes.
1996-07-14 04:11:17 +00:00
Jim Meyering
7fe510422e
[GWINSZ_BROKEN]: Remove thus-guarded `#undef TIOCGWINSZ'.
...
GWINSZ_BROKEN can't be defined anymore.
1996-07-13 19:31:34 +00:00
Jim Meyering
44b11d6e67
(usage): Fix parentheses.
1996-07-10 03:56:45 +00:00
Jim Meyering
5885cbf0d2
(UID_T_MAX): Use `(unsigned long)1' rather than
...
`(uid_t)1' to avoid problems on systems where uid_t is signed.
(GID_T_MAX): Likewise for gid_t.
From Kjetil Torgrim Homme <kjetilho@ifi.uio.no >.
1996-07-10 03:33:01 +00:00
Jim Meyering
a4d13e4b8f
(long_options): Add print-data-base and print-database.
...
(usage): Rearrange option descriptions.
1996-07-10 03:26:18 +00:00
Jim Meyering
12beb90e58
.
1996-07-10 03:18:55 +00:00
Jim Meyering
4623f5dca3
(usage): Add a one-line description to --help message.
...
From Karl Berry.
1996-07-10 03:18:31 +00:00
Jim Meyering
b124be4eb1
Change C-shell to `C shell'.
1996-07-10 03:16:30 +00:00
Jim Meyering
84b6d13a3c
(dc_parse_stream): Don't give `unrecognized keyword'
...
message unless we've processed a matching TERM directive.
1996-07-10 03:15:39 +00:00
Jim Meyering
3e0fdc1a0b
(MAXCOST): Use (unsigned long)1' rather than (COST)1'
...
so the left operand of the << isn't signed.
From Kjetil Torgrim Homme.
1996-07-10 03:02:54 +00:00
Jim Meyering
013f2fe433
Make initial colors for `color_indicator' match those
...
currently in dircolors.hin.
1996-07-08 04:25:49 +00:00
Jim Meyering
9d691ba42f
Include termios.h.
...
Guard inclusion of sys/ioctl.h with #ifdef GWINSZ_IN_SYS_IOCTL,
rather than HAVE_SYS_IOCTL_H. Modelled after sh-utils' stty.c
at suggestion from Chip Bennett <BennettC@j64.stratcom.af.mil >.
1996-07-08 04:19:36 +00:00
Jim Meyering
744ef2d96f
Recognize more filename extensions. From Joshua Cowan.
1996-07-08 03:58:36 +00:00
Jim Meyering
0472107417
(usage): Factor out backup-related text into separate string/printf statement.
1996-07-06 22:50:57 +00:00
Jim Meyering
e1de1d3a93
(usage): Factor out backup-related text into separate string/printf statement.
1996-07-06 22:50:36 +00:00
Jim Meyering
195f8a213e
[!STDC_HEADERS]: Declare free. From Marcus Daniels.
1996-07-06 03:17:09 +00:00
Jim Meyering
2b1f600cbd
(usage): Remove space before newline in usage message.
1996-07-05 03:40:21 +00:00
Jim Meyering
9824efff73
(usage): Remove space before newline in usage message.
1996-07-05 03:39:12 +00:00
Jim Meyering
7fbe57368e
(usage): Remove space before newline in usage message.
1996-07-05 02:49:48 +00:00
Jim Meyering
21c0d8f1f0
(usage): Remove space before newline in usage message.
1996-07-05 02:29:10 +00:00
Jim Meyering
316490baea
(usage): Remove space before newline in usage message.
1996-07-05 02:28:29 +00:00
Jim Meyering
f8514af7a6
(split_3): Add missing semicolon. From Jim Blandy.
1996-07-04 22:51:52 +00:00
Jim Meyering
a7d29c59fa
(main): Fix typo in last change.
1996-07-04 17:41:05 +00:00