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
47a2e7569c
(main):
...
Include the word `fail' in some diagnostics to make it clearer
that they indicate a failure.
s/getting attributes/failed to get attributes/
2001-12-11 11:47:54 +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
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
a5f1ced62a
(usage): Split --help output into smaller pieces.
...
Use fputs, not printf.
2001-11-23 15:41:16 +00:00
Jim Meyering
52d78f0558
(main): Don't strip trailing slashes; POSIX doesn't allow it here.
...
Don't include "dirname.h" when no longer needed.
2001-09-15 10:32:36 +00:00
Jim Meyering
3b7a24cc92
Do not include savedir.h; not used.
2001-08-31 09:11:04 +00:00
Jim Meyering
4a94a06aa6
(strip_trailing_slashes): Remove declaration; now in dirname.h.
2001-05-12 09:51:23 +00:00
Jim Meyering
dd4aedd1d3
(main): Fix thinko: s/argv[optind]/optarg/.
2001-05-10 14:25:48 +00:00
Jim Meyering
8d509a79da
(main): `quote' the offending argument.
2001-02-17 14:23:43 +00:00
Jim Meyering
b27dd775ad
(usage): Split long message string.
2001-01-07 16:15:37 +00:00
Jim Meyering
8e2ee9a689
(main): Rename locals, user/group, to uid/gid.
2000-12-16 12:57:14 +00:00
Jim Meyering
0e81b6b48e
(main): Reflect renaming: s/dereference/change_symlinks/.
2000-12-15 13:29:56 +00:00
Jim Meyering
748db39d02
Don't include pwd.h or grp.h -- no longer needed.
...
Include chown-core.h.
[enum Change_status, enum Verbosity]: Remove declarations.
Remove decls of globals that are now part of struct Chown_option.
(describe_change): Remove function.
(change_file_owner): Likewise.
(change_dir_owner): Likewise.
(main): Initialize chopt and update uses of the now-members.
Set user_name and group_name also when they're obtained via a
--reference=FILE option.
Pass `chopt' to change_file_owner.
2000-12-09 20:29:32 +00:00
Jim Meyering
73f1bc31d7
(change_file_owner): Restore special file permission
...
bits, since calling chown resets them on some systems.
Reported by Matt Perry.
2000-12-09 10:15:17 +00:00
Jim Meyering
b53d6da640
Convert "`%s'" in format strings to "%s", and wrap each
...
corresponding argument in a `quote (...)' call.
Add more precise diagnostics.
2000-07-30 16:16:16 +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
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
81b16373ae
Arrange to call close_stdout only upon exit.
2000-05-13 06:49:53 +00:00
Jim Meyering
df85b33ee3
Accept new option: --from=CURRENT_OWNER:CURRENT_GROUP.
...
(enum) [FROM_OPTION]: New member.
(long_options): New getopt spec.
(change_file_owner): Add old_user, old_group parameters. Use them.
(change_dir_owner): Likewise.
(usage): Describe.
(main): New case.
2000-04-17 08:19:52 +00:00
Jim Meyering
04d0388df4
(usage): Mention only :', and not .' as the separator.
2000-02-12 08:57:50 +00:00
Jim Meyering
5907ad7277
Define and use REFERENCE_FILE_OPTION and
...
DEREFERENCE_OPTION in place of bare `CHAR_MAX + N'.
1999-11-07 20:02:19 +00:00
Jim Meyering
82288821f0
(usage): Tweak --help output to make it more consistent with that of chgrp.
1999-08-20 08:58:34 +00:00
Jim Meyering
18607df151
(groupname): Declare to be `const'.
...
(change_dir_owner): Declare statp parameter to be `const'.
(usage): Make the output be more consistent with that from chgrp.
1999-08-16 21:20:44 +00:00
Jim Meyering
8b2c09a944
(change_dir_owner): Remove cast of savedir arg.
1999-08-08 10:14:26 +00:00
Jim Meyering
24df6275fb
(main): Move the declaration of `e' into the scope
...
where it's used and make it `const'.
1999-04-01 04:56:28 +00:00
Jim Meyering
667799f7e2
Don't include closeout.h or version-etc.h explicitly. Now, they're included via sys2.h.
1999-03-31 05:59:13 +00:00
Jim Meyering
c92de17d2f
define and use AUTHORS
1999-03-26 05:17:17 +00:00
Jim Meyering
dd007634ac
No longer include long-options.h.
...
Include version-etc.h instead.
(PROGRAM_NAME): Define.
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.
1999-03-26 04:10:55 +00:00
Jim Meyering
61fa70ac19
Include long-options.h
...
[long_options]: Remove the "help" and "version" entries.
(main): Use parse_long_options, including author name(s).
Remove the show_version and show_help blocks.
1999-03-04 05:09:05 +00:00
Jim Meyering
07c6f5e387
update copyright dates
1999-02-16 04:14:17 +00:00
Jim Meyering
410a3c94e8
(usage): Don't make it static so that it can be called from libfu.a by xargmatch.
1999-01-16 15:33:16 +00:00
Jim Meyering
08cfef16a2
update bug-reporting address
1998-09-19 17:17:58 +00:00
Jim Meyering
22fd1ff303
Replace 12 and 13 with CHAR_MAX + 1 and CHAR_MAX + 2 respectively.
1998-08-30 02:57:17 +00:00
Jim Meyering
7ac1d190bc
Include lchown.h.
1998-07-16 23:41:03 +00:00
Jim Meyering
75b6b90fe1
[!ENOSYS] (ENOSYS): Define to ENOTSUP or ENOMSG.
1998-07-16 23:20:03 +00:00
Jim Meyering
dd2934197b
tweak --changed diagnostic
1998-05-24 14:17:33 +00:00
Jim Meyering
45d32cef80
tweak comment
1998-05-24 13:36:54 +00:00
Jim Meyering
3f51edcdec
Accept new option, --dereference. --no-dereference is now the default.
...
(Change_status) [CH_NOT_APPLIED]: New member.
(change_symlinks): Enable this by default, now.
(describe_change): Handle new case.
(change_file_owner): Add new parameter: cmdline_arg. Update callers.
Reorganize to reflect changed semantics.
(LCHOWN): Remove definitions.
1998-05-24 12:51:37 +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
63c0f480ad
Use a single enumerated type, Verbosity, instead of
...
the two booleans, verbose and changes_only. This fixes a bug whereby
--change had the same effect as --verbose.
Plus Paul's close_stdout changes.
1998-01-04 22:41:02 +00:00
Jim Meyering
a2f0f9ac89
s/__P/PARAMS/g
1997-12-16 15:44:00 +00:00
Jim Meyering
e5781fe090
(change_dir_owner): Cast st_size arg to unsigned int in savedir call.
1997-11-30 11:05:34 +00:00
Jim Meyering
df445b0891
Remove old-style xmalloc and xrealloc decls.
1997-10-25 22:03:55 +00:00
Jim Meyering
05bbdbd786
update bug-reporting address
1997-10-07 23:53:36 +00:00
Jim Meyering
03ae2c6b97
Remove old-style savedir dcl.
...
Include savedir.h for prototype.
1997-10-04 01:57:12 +00:00
Jim Meyering
72bf7437cb
(change_file_owner): Call describe_change with a 3-state argument.
...
(describe_change): Report whether the operation was successful,
a failure, or that the request was a no-op.
Before, running `chown --verb bin /' as non-root reported
owner of / changed to bin
chown: /: Not owner
1997-08-31 22:06:10 +00:00
Jim Meyering
2ff9982e42
Add new option: --reference=FILE.
1997-07-29 03:04:58 +00:00
Jim Meyering
b7ffe8cdaf
update copyrights for 1997
1997-02-09 04:52:50 +00:00
Jim Meyering
cd0b33c839
(usage): Make parenthetical note on --no-dereference a little more general.
1997-02-01 04:49:51 +00:00