summaryrefslogtreecommitdiff
path: root/src/chown.c
AgeCommit message (Collapse)Author
2000-07-30Convert "`%s'" in format strings to "%s", and wrap eachJim Meyering
corresponding argument in a `quote (...)' call. Add more precise diagnostics.
2000-07-25(change_file_owner): Save errno from a possibly failed chown,Jim Meyering
and use that later. Otherwise, errno itself could be clobbered before used.
2000-06-27(change_dir_owner): Don't set errno beforeJim Meyering
invoking savedir, and assume that errno is nonzero if savedir fails.
2000-05-13Arrange to call close_stdout only upon exit.Jim Meyering
2000-04-17Accept new option: --from=CURRENT_OWNER:CURRENT_GROUP.Jim Meyering
(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-02-12(usage): Mention only `:', and not `.' as the separator.Jim Meyering
1999-11-07Define and use REFERENCE_FILE_OPTION andJim Meyering
DEREFERENCE_OPTION in place of bare `CHAR_MAX + N'.
1999-08-20(usage): Tweak --help output to make it more consistent with that of chgrp.Jim Meyering
1999-08-16(groupname): Declare to be `const'.Jim Meyering
(change_dir_owner): Declare statp parameter to be `const'. (usage): Make the output be more consistent with that from chgrp.
1999-08-08(change_dir_owner): Remove cast of savedir arg.Jim Meyering
1999-04-01(main): Move the declaration of `e' into the scopeJim Meyering
where it's used and make it `const'.
1999-03-31Don't include closeout.h or version-etc.h explicitly. Now, they're included ↵Jim Meyering
via sys2.h.
1999-03-26define and use AUTHORSJim Meyering
1999-03-26No longer include long-options.h.Jim Meyering
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-04Include long-options.hJim Meyering
[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-02-16update copyright datesJim Meyering
1999-01-16(usage): Don't make it static so that it can be called from libfu.a by ↵Jim Meyering
xargmatch.
1998-09-19update bug-reporting addressJim Meyering
1998-08-30Replace 12 and 13 with CHAR_MAX + 1 and CHAR_MAX + 2 respectively.Jim Meyering
1998-07-16Include lchown.h.Jim Meyering
1998-07-16[!ENOSYS] (ENOSYS): Define to ENOTSUP or ENOMSG.Jim Meyering
1998-05-24tweak --changed diagnosticJim Meyering
1998-05-24tweak commentJim Meyering
1998-05-24Accept new option, --dereference. --no-dereference is now the default.Jim Meyering
(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-03-15Use #if, not #ifdef with HAVE_ macros.Jim Meyering
Use #if !, not #ifndef with HAVE_ macros.
1998-01-04Use a single enumerated type, Verbosity, instead ofJim Meyering
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.
1997-12-16s/__P/PARAMS/gJim Meyering
1997-11-30(change_dir_owner): Cast st_size arg to unsigned int in savedir call.Jim Meyering
1997-10-25Remove old-style xmalloc and xrealloc decls.Jim Meyering
1997-10-07update bug-reporting addressJim Meyering
1997-10-04Remove old-style savedir dcl.Jim Meyering
Include savedir.h for prototype.
1997-08-31(change_file_owner): Call describe_change with a 3-state argument.Jim Meyering
(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-07-29Add new option: --reference=FILE.Jim Meyering
1997-02-09update copyrights for 1997Jim Meyering
1997-02-01(usage): Make parenthetical note on --no-dereference a little more general.Jim Meyering
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1996-11-23(usage): Alphabetize option descriptions the way sort -f would.Jim Meyering
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-10-08(usage): Improve usage messagesJim Meyering
1996-10-05(main): update --version output to conform to coding standardJim Meyering
1996-10-04(main): update --version output to conform to coding standardJim Meyering
1996-08-31(usage): remove spurious trailing \n in puts.Jim Meyering
1996-08-29(usage): Tell where to report bugs.Jim Meyering
1996-05-19.Jim Meyering
1996-05-19New option: --no-dereference (-h).Jim Meyering
(change_file_owner): Use lchown if --no-dereference (-h) was given. (usage): Update. (main): Fail if user requests --no-dereference on a system that doesn't have support for it.
1996-04-24update Copyright years for 1996Jim Meyering
1996-04-24[chown]: Move definition up a little.Jim Meyering
1996-04-24[HAVE_LCHOWN]: Define chown to lchown.Jim Meyering