summaryrefslogtreecommitdiff
path: root/src/chmod.c
AgeCommit message (Collapse)Author
2003-06-17(main): Call initialize_main.Jim Meyering
2002-12-15Remove all uses of `PARAMS'.Jim Meyering
2002-08-31Change `exit (0)' to `exit (EXIT_SUCCESS)',Jim Meyering
`exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'.
2002-08-30Change `error (1, ...' to `error (EXIT_FAILURE, ...'.Jim Meyering
2002-07-02(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.Jim Meyering
2001-12-11split long lineJim Meyering
2001-12-11(change_file_mode, main):Jim Meyering
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-02Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-11-23Split usage strings so that --help and --versionJim Meyering
descriptions are alone in their own string.
2001-11-23(usage): Split --help output into smaller pieces.Jim Meyering
Use fputs, not printf.
2001-09-15(main): Don't strip trailing slashes; POSIX doesn't allow it here.Jim Meyering
Don't include "dirname.h" when no longer needed.
2001-08-31(change_dir_mode): Remove statp arg; no longer needed.Jim Meyering
2001-05-12(strip_trailing_slashes): Remove declaration; now in dirname.h.Jim Meyering
2001-05-12(mode_changed, change_file_mode):Jim Meyering
There's no need to invoke both lstat and stat here, so call just one of the two functions.
2000-11-23(mode_changed): New function.Jim Meyering
(change_file_mode): Use it to determine accurately when -c should make chmod announce there's been a change.
2000-11-01(main): Better diagnostics.Jim Meyering
2000-09-30(change_file_mode): Perform the chmod even if theJim Meyering
file mode permission bits are the same as those that should be set. Omitting the chmod call would be alright with minimal 1003.1e DS17 ACLs, but eventually there will be other permissions in addition to rwx. E.g., add and delete for directories, and something analogous to NT's take ownership permission.
2000-08-08(main): Invoke xalloc_die instead of printing our own message.Jim Meyering
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_mode): 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_mode): 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
1999-11-07Use REFERENCE_FILE_OPTION instead of bare `CHAR_MAX + 1'.Jim Meyering
1999-08-08(change_dir_mode): Remove cast of savedir arg.Jim Meyering
1999-04-26(describe_change, change_file_mode): Use proper mode_t types and macros.Jim Meyering
Don't assume the traditional Unix values for mode bits.
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-22tweak usage message -- from KarlJim Meyering
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-30(long_options): Replace 12 with CHAR_MAX + 1.Jim Meyering
1998-08-13Include filemode.h.Jim Meyering
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_mode): 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-31tweak commentJim Meyering
1997-08-31(change_file_mode): 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 `chmod --verb u-r /' as non-root reported mode of / changed to 0355 (-wxr-xr-x) chmod: /: Not owner Reported by Philippe Schnoebelen <phs@hobbes.fing.edu.uy>
1997-07-29Add new option: --reference=FILE.Jim Meyering
1997-02-09update copyrights for 1997Jim Meyering
1997-02-01bracket bug address with <> and append a periodJim Meyering
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim 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