Jim Meyering
74fe479350
(do_move): Fix typo.
2000-07-30 15:01:11 +00:00
Jim Meyering
ce49687fac
fix spelling error in comment: s/squirelled/squirreled/.
2000-07-29 14:55:51 +00:00
Jim Meyering
586254e713
Include <limits.h>, <stdlib.h>, <wchar.h>, <wctype.h>.
...
(quote_name): Use mbrtowc to step through the filename string while
replacing nonprintables with question marks. Return the screen width,
not the strlen length. Do no output if the out stream is NULL.
(length_of_file_name_and_frills): Use the quote_name return value.
2000-07-29 06:17:02 +00:00
Jim Meyering
d0f57e1004
(temp_dir): Remove.
...
(temp_dirs, temp_dir_count, temp_dir_alloc): New vars.
(process_id): New var.
(usage): Describe new use of -T.
(add_temp_dir): New function.
(tempname): Use new temp_dirs array.
Do not discard information from the process-id or sequence
number, unless we have short file names.
(sighandle): Use process_id instead of getpid.
(main): Initialize process_id.
Add support for the new use of -T.
2000-07-29 05:41:55 +00:00
Jim Meyering
d86f9d40a5
(change_file_owner): Save errno from a possibly failed chown,
...
and use that later. Otherwise, errno itself could be clobbered before used.
2000-07-25 22:23:05 +00:00
Jim Meyering
ebd74667bc
(change_file_mode): Save errno from a possibly failed chown,
...
and use that later. Otherwise, errno itself could be clobbered before used.
2000-07-25 22:22:52 +00:00
Jim Meyering
d3938d3118
(change_file_group): Save errno from a possibly failed chown,
...
and use that later. Otherwise, errno itself could be clobbered before used.
2000-07-25 22:22:29 +00:00
Jim Meyering
c0186d3cbb
Convert "`%s'" in format strings to "%s", and wrap each
...
corresponding argument in a `quote (...)' call.
Add more precise diagnostics.
2000-07-25 13:06:31 +00:00
Jim Meyering
289dacfa49
tweak diagnostic
2000-07-25 12:28:33 +00:00
Jim Meyering
cb1df652a7
Convert "`%s'" in format strings to "%s", and wrap each
...
corresponding argument in a `quote (...)' call.
Add more precise diagnostics.
2000-07-25 12:26:52 +00:00
Jim Meyering
135a310ca1
Convert "`%s'" in format strings to "%s", and wrap each
...
corresponding argument in a `quote (...)' call.
2000-07-25 12:18:06 +00:00
Jim Meyering
01bd168259
(main): Remove unnecessary "%s" argument.
2000-07-25 12:16:16 +00:00
Jim Meyering
ddc825a0f0
Convert "`%s'" in format strings to "%s", and wrap each
...
corresponding argument in a `quote (...)' call.
Add more precise diagnostics.
2000-07-24 09:32:07 +00:00
Jim Meyering
e67940b416
Include <sys/param.h> if HAVE_SYS_PARAM_H is defined,
...
rather than if _POSIX_VERSION is defined. Remove declarations of
getpwuid, getgrgid, and getuid, now that they're in sys2.h.
2000-07-23 16:27:13 +00:00
Jim Meyering
62ab4baa06
(main): Give a better diagnostic for e.g.,
...
`dd if=/dev/fd0 seek=100000000000'.
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Add many, more precise diagnostics.
2000-07-23 15:36:34 +00:00
Jim Meyering
6a3f36dacb
[!HAVE_DECL_GETPWUID]: Declare getpwuid.
...
[!HAVE_DECL_GETGRGID]: Declare getgrgid.
[!HAVE_DECL_GETUID]: Declare getuid.
2000-07-23 15:28:24 +00:00
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