summaryrefslogtreecommitdiff
path: root/src/chmod.c
AgeCommit message (Collapse)Author
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
1996-09-06(main): Don't set verbose flag for --changes.Jim Meyering
(change_file_mode): If chmod succeeds and --changes was given, give a diagnostic describing the new permissions. Reported by Philippe Schnoebelen (phs@fing.edu.uy).
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-16(describe_change): Declare pointer parameters to be const.Jim Meyering
(change_file_mode): Likewise. (change_dir_mode): Likewise.
1996-04-24update Copyright years for 1996Jim Meyering
1996-03-24Update FSF's address.Jim Meyering
1996-03-21(main): Declare to be of type int, not void.Jim Meyering
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-12(main): Initialize for internationalized message support: call setlocale,Jim Meyering
bindtextdomain, and textdomain.
1995-11-29Mark all translatable strings using po-mode.el.Jim Meyering
1995-11-27s/non-zero/nonzero/gJim Meyering
1995-11-09indent.Jim Meyering