Jim Meyering
64521cfa9a
It appears that the `#pragma alloca' included via "system.h" is
...
adequate, since join.c uses alloca, yet lacked an in-file #pragma.
Remove `#pragma alloca'.
2003-07-12 11:38:43 +00:00
Jim Meyering
6bcd4b08ba
(main): Call initialize_main.
2003-06-17 18:13:23 +00:00
Jim Meyering
b037820eb4
(main): Handle argc < optind.
2003-05-10 14:37:12 +00:00
Jim Meyering
47161ee7d5
(movefile): Don't remove trailing slashes from SOURCE.
2002-11-17 09:41:34 +00:00
Jim Meyering
4006f4e672
Change exit (0)' to exit (EXIT_SUCCESS)',
...
`exit (1)' to `exit (EXIT_FAILURE)', and
`usage (1)' to `usage (EXIT_FAILURE)'.
2002-08-31 08:52:10 +00:00
Jim Meyering
56a4c59e60
(euidaccess): Remove declaration. It was unused. From Michael Stone.
...
(yesno): Remove declaration. It too was unused.
2002-07-09 06:38:19 +00:00
Jim Meyering
d23970e52e
(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.
2002-07-02 09:05:33 +00:00
Jim Meyering
f849e0aaac
(do_move): Give one diagnostic, not two, when unable to
...
unlink a destination file. This bug was introduced in fileutils-3.16l.
$ /bin/mv /etc/passwd /tmp
/bin/mv: cannot unlink `/etc/passwd': Permission denied
/bin/mv: cannot remove `/etc/passwd': Permission denied
[Exit 1]
2002-06-12 08:01:48 +00:00
Jim Meyering
a4b18d8961
(do_move): Adapt to new calling sequence for rm.
2002-06-02 20:50:20 +00:00
Jim Meyering
bbd396f52f
Revert last change.
2002-04-25 16:32:32 +00:00
Jim Meyering
e305ef0fa8
(do_move): Adjust caller of remove_init.
2002-04-22 07:35:41 +00:00
Jim Meyering
302c89b285
(do_move): Correct a comment.
2002-03-30 07:12:23 +00:00
Jim Meyering
9419e88fc4
(do_move): The first time we resort to copy/remove,
...
call lstat `.' to get the device/inode numbers now required for rm.
2002-03-08 16:45:51 +00:00
Jim Meyering
f3ac2e7839
Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
...
instead of hard-coding --help and --version descriptions.
2001-12-02 22:26:57 +00:00
Jim Meyering
072b27d4d2
(usage): Note that ``Mandatory arguments to long options are mandatory
...
for short options too.''
2001-11-23 20:29:56 +00:00
Jim Meyering
b78de3e724
Split usage strings so that --help and --version
...
descriptions are alone in their own string.
2001-11-23 20:10:25 +00:00
Jim Meyering
a2e185c904
(cp_option_init): Initialize new member.
2001-11-22 19:48:17 +00:00
Jim Meyering
42ad428793
(cp_option_init): Initialize new member.
...
(main): dest_info_init now takes a parameter.
2001-11-22 10:54:31 +00:00
Jim Meyering
493d1adca1
(movefile): Now that remember_copied xstrdup's the file name, free `new_dest'.
2001-10-18 08:13:28 +00:00
Jim Meyering
a5f6a3dc40
(cp_option_init): Initialize new member to 1.
2001-10-13 19:41:17 +00:00
Jim Meyering
6d334f8f62
(cp_option_init): Don't set it.
2001-10-13 19:12:52 +00:00
Jim Meyering
66372e29eb
* src/copy.h (struct cp_options): Rename members:
...
s/preserve_owner_and_group/preserve_ownership/, and
s/preserve_chmod_bits/preserve_mode/.
* src/copy.c, src/cp.c, src/install.c, src/mv.c: Update all uses.
2001-10-13 17:24:38 +00:00
Jim Meyering
3dfa4910e2
(do_move): Reflect that hash_init now takes no arguments.
2001-10-06 16:45:53 +00:00
Jim Meyering
6027bfa668
(main): Call dest_info_init if necessary.
2001-09-28 19:53:21 +00:00
Jim Meyering
a9b3766804
Accept new option: --reply={yes,no,query}
...
Include argmatch.h.
(enum) [REPLY_OPTION]: Define.
(usage): Describe new option.
Split long usage string into smaller pieces.
(main): Handle new option.
2001-09-15 11:38:36 +00:00
Jim Meyering
63f570d12b
(full_write): Remove decl; not needed.
2001-08-31 07:22:06 +00:00
Jim Meyering
43a6f9d2d8
(AUTHORS): Mark string for translation, since it contains the English word `and'.
2001-08-14 06:54:27 +00:00
Jim Meyering
2e91541147
(cp_option_init): Adjust initialization of `interactive',
...
and initialize new member, stdin_tty.
(main): Adjust initialization(s) of `interactive',
2001-08-13 08:36:16 +00:00
Jim Meyering
053a9d88ee
(usage): Correct the description of --update.
2001-08-06 17:28:37 +00:00
Jim Meyering
b489ba12d8
Include "dirname.h".
...
(strip_trailing_slashes_2): Remove; now done by
strip_trailing_slashes. All callers changed.
2001-05-12 09:54:19 +00:00
Jim Meyering
99d7f7d422
(long_options): Use `strip-trailing-slashes',
...
per the documetation, not `strip-trailing-slash'.
2001-02-03 16:50:04 +00:00
Jim Meyering
9ea9eed873
(do_move): Remove diagnostic, now that copy.c issues it.
...
Set `fail' to nonzero in the primary `if (copy_into_self)' block
rather than in its own tiny one below.
2001-01-10 12:16:52 +00:00
Jim Meyering
d15557db96
(rm_option_init): Remove FIXME-maybe comment.
2000-10-16 08:09:57 +00:00
Jim Meyering
c2c680ad95
(do_move): Moving a directory specified with a trailing
...
slash from one partition to another, and giving it a different
name at the destination would cause mv to get a failed assertion.
Reported by Michael Stone.
(strip_trailing_slashes_2): Move function definition to precede new first use.
2000-09-22 15:40:43 +00:00
Jim Meyering
b8fbc41536
Remove obsolete comment block.
...
(cp_option_init): Initialize new members.
(usage): Reflect the fact that --force (-f) relates only to whether
mv prompts.
(main): Remove uses of old `force' option member.
2000-09-03 14:36:50 +00:00
Jim Meyering
94d34806bd
(cp_option_init): Initialize to DEREF_NEVER, not `0'.
2000-08-20 20:49:34 +00:00
Jim Meyering
129ede91ad
(movefile): Invoke xalloc_die instead of printing our own message.
2000-08-08 10:53:23 +00:00
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
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
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
81b16373ae
Arrange to call close_stdout only upon exit.
2000-05-13 06:49:53 +00:00
Jim Meyering
125de05913
add comment
2000-04-16 12:16:03 +00:00
Jim Meyering
ca59fb27c2
Document that while the --backup option takes an
...
optional argument, the -b option accepts none.
(main): Use `backup type' in call to xget_version, not the
now-deprecated `--version-control'.
2000-04-08 06:45:48 +00:00
Jim Meyering
efa9563f3d
(main): Don't expect array index `n_files - 1' to evaluate
...
to `-1' for unsigned int n_files == 0. Doing so lead to a segfault on
alpha. From Michael Stone.
2000-01-24 13:48:12 +00:00
Jim Meyering
af6d4ad6ca
Remove non-POSIX warning about trailing-slashed symlink-to-directory.
2000-01-02 08:53:30 +00:00
Jim Meyering
70cc369588
New option: --strip-trailing-slashes.
2000-01-02 08:51:39 +00:00
Jim Meyering
176efa5092
(usage): List new --target-directory=... usage.
1999-12-23 09:34:25 +00:00
Jim Meyering
60b24ab5af
tweak usage
1999-10-31 10:36:54 +00:00