Jim Meyering
9993d4141c
Fix cp so that `cp -r DIR1/ DIR2' works once again.
...
(ASSIGN_BASENAME_STRDUPA): New macro.
(do_copy): Use it here (so we always strip trailing slashes before
calling base_name).
2000-07-23 10:54:01 +00:00
Jim Meyering
e66e1f94bb
(ASSIGN_STRDUPA): Remove macro definition.
2000-07-23 10:52:05 +00:00
Jim Meyering
418ae892b1
(ASSIGN_STRDUPA): New macro (moved here from remove.c).
2000-07-23 10:49:59 +00:00
Jim Meyering
fde07e7f99
(batch_convert): Free `initial_TZ' only if it was set.
2000-07-19 21:00:20 +00:00
Jim Meyering
5c05881f32
(visible): Don't mark `<undef>' for translation.
...
The standard requires that exact string.
2000-07-17 20:07:33 +00:00
Jim Meyering
6859252584
(usage): Give a little more info.
...
Remove FIXME comment.
2000-07-17 19:43:05 +00:00
Jim Meyering
870d8663fb
Avoid warnings.
...
(struct bin_str): Declare `string' member to be `const'.
(put_indicator): Declare local `p' to be `const'.
2000-07-17 08:17:12 +00:00
Jim Meyering
b905d7f0b5
Convert "`%s'" in format strings to "%s", and wrap each
...
corresponding argument in a `quote (...)' call.
Improve a couple diagnostics.
2000-07-15 13:32:02 +00:00
Jim Meyering
f6cb183112
Convert "`%s'" in format strings to "%s", and wrap each
...
corresponding argument in a `quote (...)' call -- if there's only one.
If there are more than one, then use `quote_n (0, ...),
quote_n (1, ...), ...'.
2000-07-15 10:35:27 +00:00
Jim Meyering
f78d8fcd66
Convert "`%s'" in format strings to "%s", and wrap each
...
corresponding argument in a `quote (...)' call -- if there's only one.
If there are more than one, then use `quote_n (0, ...),
quote_n (1, ...), ...'.
2000-07-15 10:11:47 +00:00
Jim Meyering
7f8c02a4fb
Convert "`%s'" in format strings to "%s", and wrap each
...
corresponding argument in a `quote (...)' call -- if there's only one.
If there are more than one, then use `quote_n (0, ...),
quote_n (1, ...), ...'.
2000-07-15 10:11:18 +00:00
Jim Meyering
23c792f18c
update copyright date
2000-07-09 07:14:42 +00:00
Jim Meyering
6d16d92a02
update copyright date
2000-07-09 07:11:28 +00:00
Jim Meyering
1237bc6c72
Change type of global, field_1_bufsize, from int to size_t.
2000-07-01 15:41:01 +00:00
Jim Meyering
81d46d192a
(find_bracketed_repeat): Add a cast to suppress a warning.
2000-06-29 11:15:52 +00:00
Jim Meyering
86956748b1
(enum): Remove comma from end of enumerator list.
...
From Gerhard Poul <gpoul@gnu.org
2000-06-29 10:39:41 +00:00
Jim Meyering
b1b5fb67fc
(count_entry): Don't set errno before
...
invoking savedir, and assume that errno is nonzero if savedir fails.
2000-06-27 13:12:12 +00:00
Jim Meyering
7e2d22e2a6
(copy_dir): Don't set errno before
...
invoking savedir, and assume that errno is nonzero if savedir fails.
2000-06-27 13:11:36 +00:00
Jim Meyering
53ec884edb
(change_dir_mode): Don't set errno before
...
invoking savedir, and assume that errno is nonzero if savedir fails.
2000-06-27 13:10:50 +00:00
Jim Meyering
7aa50cfb3c
(change_dir_owner): Don't set errno before
...
invoking savedir, and assume that errno is nonzero if savedir fails.
2000-06-27 13:10:24 +00:00
Jim Meyering
db0cd2f7e6
(change_dir_group): Don't set errno before
...
invoking savedir, and assume that errno is nonzero if savedir fails.
2000-06-27 13:09:57 +00:00
Jim Meyering
99c1d22a99
(show_dev): Round disk usage percentage up, not to nearest value.
...
Use integer arithmetic if it's easy.
Fix bug when converting twos-complement negative values to floating point.
2000-06-27 06:33:31 +00:00
Jim Meyering
9abfcc500a
`id -Gn' (invoked by groups) would fail without giving a diagnostic
...
on malconfigured systems.
(print_user): Give a diagnostic if number->name lookup fails.
(print_group): Likewise.
2000-06-26 06:32:58 +00:00
Jim Meyering
92ead9886c
(copy_internal): Don't return return immediately after a
...
failed copy_dir call -- otherwise, the failure to read a single file
in a source directory would cause the containing destination directory
not to have owner/perms set properly. Reported by Piotr Kwapulinski.
2000-06-25 15:50:51 +00:00
Jim Meyering
39f35a55d3
tweak copyright
2000-06-24 07:37:55 +00:00
Jim Meyering
a6e6a1e05b
(sysv_sum_file): Avoid overflowing 32-bit accumulator
...
on files larger than 256 MB.
2000-06-24 07:37:44 +00:00
Jim Meyering
62e3f1f1ef
(main): Correct a comment.
2000-06-22 17:10:51 +00:00
Jim Meyering
6b01706633
(getstr): Remove private (and out of date) version of this function.
...
(cut_fields): Adjust caller to use the just-extended one in ../lib.
2000-06-21 09:20:40 +00:00
Jim Meyering
e1e0683c82
(valid_options): Don't segfault on `stty erase -'.
2000-06-21 07:29:03 +00:00
Jim Meyering
b1c4d0148a
(main): Fix off-by-argc test, so +N-style options are recognized once again.
...
Reported by Geoff Keunning.
Fix typo in diagnostic: s/compare/skip/.
2000-06-20 06:46:28 +00:00
Jim Meyering
a6b9441450
(print_size): Round disk usage up.
2000-06-16 12:50:27 +00:00
Jim Meyering
78362b9aa4
(print_dir, gobble_file, print_long_format, print_file_name_and_frills):
...
Round disk usage up.
2000-06-16 12:49:52 +00:00
Jim Meyering
f570d032b4
(df_readable): New arg for rounding style.
...
Round negative numbers correctly.
(show_dev): Round disk usage up and disk free space down.
2000-06-16 12:49:20 +00:00
Jim Meyering
2795faa36f
(copy_reg): Give a slightly better diagnostic.
2000-06-16 12:47:36 +00:00
Jim Meyering
3e9e02727b
(main): Give the correct diagnostic when using the
...
--target-dir=DIR option, but no arguments.
Patch from Michael Stone. Reported by herbert@gondor.apana.org.au .
2000-06-12 06:09:32 +00:00
Jim Meyering
98a1d5e72a
(show_point) [HAVE_REALPATH && !HAVE_RESOLVEPATH]:
...
Cast undeclared `realpath' to char* to avoid warning.
2000-06-04 06:51:46 +00:00
Jim Meyering
b662dfc657
Allow -v as synonym for --verbose, to be consistent with other fileutils.
2000-06-03 08:11:08 +00:00
Jim Meyering
8cb9b753c5
Allow -v as synonym for --verbose, to be consistent with other fileutils.
2000-06-03 08:10:37 +00:00
Jim Meyering
2d5e52c70d
(usage): Document that -v is a synonym for --verbose.
2000-06-03 08:09:53 +00:00
Jim Meyering
f06a2374fd
Allow `cp -d -u' to copy one symlink onto another that's identical.
...
(copy_internal): Change the || to ^ in the big sameness
test, so copying one symlink onto another, identical one doesn't fail here.
If the symlink call fails, don't report the failure if the destination
already exists and is a symlink pointing to the proper name.
2000-05-29 21:05:07 +00:00
Jim Meyering
d73513786d
Arrange to call close_stdout upon exit.
...
Don't close stdout explicitly.
(usage): Add missing backslash at end of line.
(write_header): Remove now-unused COMMENT parameter.
Update all callers.
2000-05-27 21:17:39 +00:00
Jim Meyering
8ccf29f7fe
Arrange to call close_stdout upon exit.
...
Don't close stdout explicitly. Replace uses of global constant,
output_desc, with uses of STDOUT_FILENO.
2000-05-27 21:14:26 +00:00
Jim Meyering
87da84ba81
(close_stdout_wrapper): Don't dereference NULL pointer.
...
From Bob Proulx.
2000-05-25 07:14:13 +00:00
Jim Meyering
449fa131d6
(head_file): Use STDIN_FILENO in place of `0'.
...
(main): Likewise.
2000-05-24 07:10:12 +00:00
Jim Meyering
24f2bd8c9f
Arrange to call close_stdout upon exit. Don't close stdout explicitly.
2000-05-20 22:06:38 +00:00
Jim Meyering
ac81803363
Arrange to call close_stdout upon exit. Don't close stdout explicitly.
2000-05-20 22:04:40 +00:00
Jim Meyering
b2c7c6055d
Arrange to call close_stdout upon exit. Don't close stdout explicitly.
2000-05-20 22:04:16 +00:00
Jim Meyering
c75dc9689e
Arrange to call close_stdout upon exit. Don't close stdout explicitly.
2000-05-20 22:03:55 +00:00
Jim Meyering
02f7878928
Arrange to call close_stdout upon exit. Don't close stdout explicitly.
...
(but set exit status and file name, too)
2000-05-20 22:03:12 +00:00
Jim Meyering
8f8938e366
add format args to match new %lu directives
2000-05-20 15:37:26 +00:00