Jim Meyering
cd053a291e
update from automake-2.1h
1998-03-23 23:19:01 +00:00
Jim Meyering
eeef5c523d
merge variables: forever_multiple and forever
...
(recheck): New function.
Begin to support --allow-missing option.
1998-03-22 20:55:34 +00:00
Jim Meyering
df4ba7d9ca
(tail_forever): plug gross fd leaks
...
Don't close stdin
Don't print header unnecessarily if the first file to grow
is the last one for which a header was printed.
1998-03-21 16:33:53 +00:00
Jim Meyering
a33adfebb2
(decode_switches): Pass a null pointer instead of address
...
of quotearg_quoting_options.
1998-03-21 08:47:54 +00:00
Jim Meyering
6ec5bace8a
(show_dev): If fsu_bavail_top_bit_set is nonzero,
...
assume the original value corresponding to fsu_bavail was negative.
1998-03-19 22:18:29 +00:00
Jim Meyering
fcbfefa513
*** empty log message ***
1998-03-17 23:31:18 +00:00
Jim Meyering
fcf6405f2d
(tail_file): Merge largely-duplicated blocks of code.
1998-03-15 23:04:56 +00:00
Jim Meyering
6684ffa826
Use #if, not #ifdef with HAVE_ macros.
...
Use #if !, not #ifndef with HAVE_ macros.
1998-03-15 17:54:50 +00:00
Jim Meyering
45c381f4ba
s/get-date.h/getdate.h/
1998-03-14 16:35:24 +00:00
Jim Meyering
184c0062a4
s/get-date.h/getdate.h/
1998-03-14 16:32:35 +00:00
Jim Meyering
6630a24b7a
(copy): Update prototype.
1998-03-13 23:39:39 +00:00
Jim Meyering
e558629ce1
(do_move): Add ©_into_self arg in call to copy.
...
Don't remove source directory when copy_into_self is nonzero.
Reported by Arne Henrik Juul.
1998-03-13 23:38:50 +00:00
Jim Meyering
fefa8511b8
(do_copy): Add unused arg in calls to copy.
1998-03-13 23:38:27 +00:00
Jim Meyering
347db9ce77
(copy_dir): Add new parameter, copy_into_self, and set it.
...
(copy_internal): Likewise.
(copy): Likewise.
Update all callers.
1998-03-13 23:37:42 +00:00
Jim Meyering
92da57a7be
Use `virtual memory exhausted' message, not
...
`Memory exhausted' to be consistent with the majority of other
such messages.
Say `removing all...', not `removing any...'.
1998-03-13 23:35:43 +00:00
Jim Meyering
4078ae8de8
(remove_parents): Be consistent with documentation of
...
--verbose option and with remove.c in saying `removing...' before
the operation is attempted.
(main): Likewise.
Suggestions from Santiago Vila.
1998-03-13 23:35:25 +00:00
Jim Meyering
3086193091
(usage): Tweak spacing
1998-03-13 15:32:28 +00:00
Jim Meyering
cb3b5ed486
(save_stdin): Open temporary file exclusively, to
...
foil a common denial-of-service attack.
From Paul Eggert.
1998-03-11 11:54:11 +00:00
Jim Meyering
7ee8ed7e37
(xtmpfopen): Open temporary file exclusively, to
...
foil a common denial-of-service attack.
From Paul Eggert.
1998-03-11 11:53:29 +00:00
Jim Meyering
e457645eac
Include new file quotearg.h.
...
(enum indicator_style): Rename all to classify, and not_programs
to file_type, to match option spellings. All users changed.
(indicator_style_args): New constant.
(quote_funny_chars, quote_as_string, quote_shell): Remove;
(filename_quoting_options, dirname_quoting_options): Use these
variables instead.
(long_options): Add --indicator-style, --quoting-style,
--show-control-chars. Remove --quote-shell.
(dired_dump_obstack): Remove style parameter and don't output style.
(main): Go back to previous method of outputting //DIRED//
and //SUBDIRED// lines, without style. But add a new
//DIRED-OPTIONS// line that does output style.
(decode_switches, usage): Add --indicator-style, --quoting-style,
--show-control-chars. Remove --quote-shell.
(decode_switches): Default from QUOTING_STYLE environment variable.
Set new quoting vars.
(quote_name): Renamed from quote_filename.
Take new arg specifying quoting options.
Always print; do not have a special case for null FILE * argument.
All callers changed.
Move the guts of this function to new file quotearg.c.
(length_of_file_name_and_frills): Use quotearg_buffer instead
of (old) quote_filename to find length of file name.
(decode_switches, parse_ls_color, print_dir, gobble_file,
get_link_name): Quote output in diagnostics.
1998-02-25 22:38:12 +00:00
Jim Meyering
f8998dae41
Include get-date.h.
...
Remove get_date decl.
1998-02-20 21:50:30 +00:00
Jim Meyering
a7ba2688ca
s/getdate.h/get-date.h/
1998-02-20 21:47:10 +00:00
Jim Meyering
f322649c58
(cp_option_init): Set copy_as_regular to 0, not 1.
...
Otherwise, mv tries to open special files.
Reported by Kjetil Torgrim Homme.
1998-02-16 23:27:50 +00:00
Jim Meyering
519365bb08
(usage): Reword to use TARGET' and LINK_NAME' in description.
1998-02-08 21:27:18 +00:00
Jim Meyering
a6a3dee962
*** empty log message ***
1998-02-06 20:48:10 +00:00
Jim Meyering
0324f8d422
.
1998-02-06 20:47:23 +00:00
Jim Meyering
a3db75c4b3
add comments on #endif's
1998-02-03 08:28:43 +00:00
Jim Meyering
46fb234f5f
(xgetgroups): Guard function defn with #if HAVE_GETGROUPS.
1998-02-03 08:27:48 +00:00
Jim Meyering
e8b739e317
(print_header): Change format to align heading over
...
last column of `df -i' output. From Andreas Schwab.
1998-01-28 08:09:56 +00:00
Jim Meyering
e27d21668c
(parse_obsolescent_option): -l is an obsolescent option.
1998-01-25 14:07:46 +00:00
Jim Meyering
0eba2a8dd7
(DO_CHOWN): Don't fail for non-root when chown fails due
...
not only to lack of permission (EPERM), but also to lack of support
(EINVAL). Reported by Bengt Martensson.
1998-01-25 09:28:48 +00:00
Jim Meyering
7c04ce1f09
(re_protect): Don't fail for non-root when chown fails due
...
not only to lack of permission (EPERM), but also to lack of support
(EINVAL). Reported by Bengt Martensson.
1998-01-25 09:27:57 +00:00
Jim Meyering
3a62f8785f
(cat): Convert comma-expressions to pairs of
...
semicolon-terminated stmts.
Add braces around compound if/else stmts.
1998-01-25 08:25:05 +00:00
Jim Meyering
85923cb2bc
add missing `)'
1998-01-24 23:34:46 +00:00
Jim Meyering
ea2969da49
(parse_obsolescent_option): Do not interpret `-f -n 1 ...'
...
as obsolescent options.
Accept new option: --sleep-interval=SECONDS (-s).
(parse_options): Recognize it.
(usage): Describe it.
(tail_forever): Use it.
(dump_remainder): Use it.
1998-01-24 23:33:02 +00:00
Jim Meyering
cd4c2d0fdc
(TYPE_MINIMUM): Add extra outer cast to work around
...
bug in Cray C 5.0.3.0 when T == time_t.
1998-01-24 08:45:55 +00:00
Jim Meyering
9c70563ee7
add curlies
1998-01-23 18:34:12 +00:00
Jim Meyering
2a4842f7f3
(quit): Declare to be inline to stifle compile warning.
1998-01-22 08:58:12 +00:00
Jim Meyering
d82fadf365
Reorder functions to obviate forward dcls.
1998-01-22 08:55:13 +00:00
Jim Meyering
ef63ce007d
(do_copy): Add unreachable `return 0' to stifle warning.
1998-01-22 08:36:27 +00:00
Jim Meyering
9cdd2e05e6
(copy_internal): Use x->backup_type, not the global.
...
(valid_options): Use VALID_BACKUP_TYPE and VALID_SPARSE_MODE.
1998-01-22 08:22:00 +00:00
Jim Meyering
6cce6a1b7f
[NDEBUG]: Comment out definition.
...
(do_copy): Use x->backup_type, not the global.
1998-01-22 08:19:17 +00:00
Jim Meyering
d9f0ca41bd
(rm_option_init): New function.
...
(cp_option_init): New function.
(copy_reg): Remove now-unused function.
(do_move): Set up for and use `copy.c (copy)' in place of copy_reg.
Set up for and use `remove.c (rm)' in place of unlink.
1998-01-22 08:16:09 +00:00
Jim Meyering
df7cef21c7
Remove and minimally librarify guts for use in mv.c.
...
(main): Pass options (`&x') to rm.
Call remove_init and remove_fini instead of open-coding them.
1998-01-22 08:14:52 +00:00
Jim Meyering
9f2d1beded
*** empty log message ***
1998-01-22 08:14:17 +00:00
Jim Meyering
ff59218d54
New file. Contains guts of old rm.c.
...
(remove_init): New function.
(remove_fini): New function.
1998-01-22 08:13:57 +00:00
Jim Meyering
1a18272561
Declare new global, backup_type.
...
(main): Initialize backup_type unconditionally.
(do_link): Call find_backup_file_name with new argument, backup_type.
1998-01-22 08:13:12 +00:00
Jim Meyering
2bdf8621d6
Declare new global, backup_type.
...
(main): Initialize backup_type unconditionally.
(copy_file): Call find_backup_file_name with new backup_type, argument.
1998-01-22 08:12:24 +00:00
Jim Meyering
734d1cccc3
(VALID_SPARSE_MODE): Define.
...
[struct cp_options] (backup_type): New member.
1998-01-21 16:16:00 +00:00
Jim Meyering
2bec121abb
add `,' in comment
1998-01-19 09:29:27 +00:00