Jim Meyering
f8e66794d9
(change_file_mode): Perform the chmod even if the
...
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-09-30 09:39:41 +00:00
Jim Meyering
8180fd9209
(main): Invoke xalloc_die instead of printing our own message.
2000-08-08 07:07:55 +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
ebd74667bc
(change_file_mode): Save errno from a possibly failed chown,
...
and use that later. Otherwise, errno itself could be clobbered before used.
2000-07-25 22:22:52 +00:00
Jim Meyering
53ec884edb
(change_dir_mode): Don't set errno before
...
invoking savedir, and assume that errno is nonzero if savedir fails.
2000-06-27 13:10:50 +00:00
Jim Meyering
81b16373ae
Arrange to call close_stdout only upon exit.
2000-05-13 06:49:53 +00:00
Jim Meyering
1645ace5e7
Use REFERENCE_FILE_OPTION instead of bare `CHAR_MAX + 1'.
1999-11-07 20:00:54 +00:00
Jim Meyering
41a7bbf8e0
(change_dir_mode): Remove cast of savedir arg.
1999-08-08 10:14:01 +00:00
Jim Meyering
5d76644c3e
(describe_change, change_file_mode): Use proper mode_t types and macros.
...
Don't assume the traditional Unix values for mode bits.
1999-04-26 12:51:43 +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
06303195c0
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:11:15 +00:00
Jim Meyering
cec649b346
tweak usage message -- from Karl
1999-03-22 22:36:12 +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
ce0ba9e9d9
(long_options): Replace 12 with CHAR_MAX + 1.
1998-08-30 03:02:21 +00:00
Jim Meyering
461aea548a
Include filemode.h.
1998-08-13 02:06:41 +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
03f9f3dbec
s/__P/PARAMS/g
1997-12-16 15:32:32 +00:00
Jim Meyering
a10fdc591f
(change_dir_mode): Cast st_size arg to unsigned int in savedir call.
1997-11-30 11:05:10 +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
3445d47a10
Remove old-style savedir dcl.
...
Include savedir.h for prototype.
1997-10-04 01:56:23 +00:00
Jim Meyering
a98be62643
tweak comment
1997-08-31 22:10:46 +00:00
Jim Meyering
c3cdbb8d3f
(change_file_mode): 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 `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-08-31 12:57:15 +00:00
Jim Meyering
910502b044
Add new option: --reference=FILE.
1997-07-29 03:05:45 +00:00
Jim Meyering
b7ffe8cdaf
update copyrights for 1997
1997-02-09 04:52:50 +00:00
Jim Meyering
a882d55b52
bracket bug address with <> and append a period
1997-02-01 04:24:08 +00:00
Jim Meyering
5582e6dad3
change bug-reporting address
1996-11-03 03:16:27 +00:00
Jim Meyering
b8e689dc67
change bug-reporting address
1996-11-02 20:44:15 +00:00
Jim Meyering
4f28f318d8
(main): update --version output to conform to coding standard
1996-10-05 13:14:11 +00:00
Jim Meyering
de05a873ec
(main): update --version output to conform to coding standard
1996-10-04 04:16:01 +00:00
Jim Meyering
71066e34b9
(main): Don't set verbose flag for --changes.
...
(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-09-06 03:00:56 +00:00
Jim Meyering
c9fff51897
(usage): remove spurious trailing \n in puts.
1996-08-31 04:44:31 +00:00
Jim Meyering
7e294bac78
(usage): Tell where to report bugs.
1996-08-29 05:05:57 +00:00
Jim Meyering
fce70ef38b
(describe_change): Declare pointer parameters to be const.
...
(change_file_mode): Likewise.
(change_dir_mode): Likewise.
1996-05-16 03:55:44 +00:00
Jim Meyering
dc98736719
update Copyright years for 1996
1996-04-24 04:42:21 +00:00
Jim Meyering
5de0b392f2
Update FSF's address.
1996-03-24 18:47:09 +00:00
Jim Meyering
bb6a548712
(main): Declare to be of type int, not void.
1996-03-21 22:45:19 +00:00
Jim Meyering
ca0246a4c1
Don't include version.h.
...
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-16 16:49:28 +00:00
Jim Meyering
10c96c43ac
(main): Initialize for internationalized message support: call setlocale,
...
bindtextdomain, and textdomain.
1996-03-12 03:08:30 +00:00
Jim Meyering
073c4cb543
Mark all translatable strings using po-mode.el.
1995-11-29 19:24:52 +00:00
Jim Meyering
57ec0f45c9
s/non-zero/nonzero/g
1995-11-27 05:34:31 +00:00
Jim Meyering
31856b16c3
indent.
1995-11-09 23:27:32 +00:00
Jim Meyering
6732422b97
(main): Move to the end.
...
Remove most fwd dcls.
1995-11-09 23:26:17 +00:00
Jim Meyering
c0d94c89ec
Protoize.
1995-11-09 17:02:23 +00:00
Jim Meyering
ec8d1fce62
(main): Include program name in --version output.
1995-06-22 18:43:14 +00:00
Jim Meyering
99ce9e9832
Use stat (lstat), not safe_stat (safe_lstat).
1995-05-13 12:48:33 +00:00