Paul Eggert
3cccf50ce3
* makepath.c (make_path): chdir to "//", not "/", if the file name
...
starts with exactly two slashes.
2005-05-05 08:00:03 +00:00
Paul Eggert
280cc68071
(make_path): chdir to "//", not "/", if the file name
...
starts with exactly two slashes.
2005-05-05 07:59:48 +00:00
Paul Eggert
04d5428ad3
Regenerate.
2005-05-04 17:25:26 +00:00
Paul Eggert
441a46319c
(chmod invocation): chmod -w complains if its
...
behavior differs from what chmod a-w would do.
2005-05-04 17:24:49 +00:00
Paul Eggert
918d8e5f31
chmod -w now complains if it differs from chmod a-w.
2005-05-04 17:23:38 +00:00
Paul Eggert
b9abf51d74
chmod -w now complains if it differs from chmod a-w.
2005-05-04 17:23:13 +00:00
Paul Eggert
a68066a0fb
Initial version.
2005-05-04 17:22:54 +00:00
Paul Eggert
5147bacee1
(TESTS): Add umask-x
2005-05-04 17:22:41 +00:00
Paul Eggert
4432ecc7b5
Include quotearg.h.
...
(diagnose_surprises): New var.
(process_file): Diagnose surprises. Simplify the logic a bit,
while we're at it.
(main): Prepare to diagnose surprises. Remove useless code for
'-' option.
2005-05-04 17:22:25 +00:00
Paul Eggert
28bbebfb89
chmod -w now complains if it differs from chmod a-w.
2005-05-04 17:22:08 +00:00
Paul Eggert
6383922a13
ls --indicator-style=directory renamed to ls --indicator-style=slash.
2005-05-02 18:41:53 +00:00
Paul Eggert
967e54a1e1
(ls invocation): ls --indicator-style=directory
...
renamed to ls --indicator-style=slash, to avoid confusion with ls
--directory.
2005-05-02 18:41:12 +00:00
Paul Eggert
77be207a57
(usage): ls --indicator-style=directory renamed to ls
...
--indicator-style=slash, to avoid confusion with ls --directory.
(slash): Renamed from directory_only. All uses changed.
2005-05-02 18:40:47 +00:00
Paul Eggert
9b1fc199cd
ls --indicator-style=directory renamed to ls
...
--indicator-style=slash, to avoid confusion with ls --directory.
2005-05-02 18:40:20 +00:00
Paul Eggert
ecf4669714
Sync from gnulib.
2005-05-02 04:28:20 +00:00
Paul Eggert
e9d60320ab
"chmod +1 foo" is now diagnosed.
2005-05-01 14:33:23 +00:00
Paul Eggert
dfdf88d425
* modechange.h (mode_free): Remove; all callers changed to invoke 'free'.
...
* modechange.c: Likewise. Simplify internals a bit. Prohibit "+0".
2005-05-01 14:28:38 +00:00
Paul Eggert
71a7e54b0d
mode_free -> free
2005-05-01 14:27:51 +00:00
Paul Eggert
394b469369
(mode_free): Remove; all callers changed to invoke 'free'.
2005-05-01 14:27:09 +00:00
Paul Eggert
d4502755f4
(mode_free): Remove; all callers changed to invoke 'free'.
...
xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
(MODE_DONE): New constant.
(struct mode_change): Remove 'next' member.
(make_node_op_equals): New function; like the old one of the
same name, except it allocates an array.
(mode_compile, mode_create_from_ref): Use it.
(mode_compile): Allocate result as an array, not a linked list.
Parse octal string ourself, so that we catch mistakes like "+0".
(mode_adjust): Arg is an array, not a linked list.
2005-05-01 14:26:50 +00:00
Paul Eggert
67a19c8e42
Regenerate.
2005-04-30 00:07:30 +00:00
Paul Eggert
89a64c09ba
Log yesterday's changes.
2005-04-30 00:06:06 +00:00
Paul Eggert
60eebc75c9
Document the last two days' worth of changes.
2005-04-30 00:05:46 +00:00
Paul Eggert
73c0749921
Fix typo in ls POSIX changes.
2005-04-29 23:53:39 +00:00
Paul Eggert
2ae6e04c14
(tv): Rename tests from obs to obs-plus
...
if they use file names starting with +.
(test_vector): Don't set _POSIX2_VERSION if obs but not obs-plus.
2005-04-29 23:51:33 +00:00
Paul Eggert
37b4097c76
(tv): Rename tests from obs to obs-plus
...
if they use file names starting with +.
(test_vector): Don't set _POSIX2_VERSION if obs but not obs-plus.
2005-04-29 23:51:11 +00:00
Paul Eggert
4dad901e78
Fix comment to match new behavior of "sort".
2005-04-29 23:50:52 +00:00
Paul Eggert
87aed84ff4
Don't set _POSIX2_VERSION; no longer needed.
2005-04-29 23:49:47 +00:00
Paul Eggert
8b4811a61b
Don't use 'set -'
2005-04-29 21:49:59 +00:00
Paul Eggert
d62f87f164
Don't use 'set -'.
2005-04-29 21:49:20 +00:00
Paul Eggert
57b38dad6b
Don't use 'set -'. Simplify test construction.
...
Work even if the underyling system attaches ACLs to new dirs.
2005-04-29 21:49:06 +00:00
Paul Eggert
b4dcd32039
Don't use 'set -'. Also, don't set _POSIX2_VERSION.
2005-04-29 21:48:48 +00:00
Paul Eggert
57f4da0a00
Test for new -p behavior. Omit -1 option.
...
The "ls --color" test wasn't being checked; add a check for
"ls --color=auto" instead.
2005-04-29 21:01:29 +00:00
Paul Eggert
483ad6b981
(enum indicator_style): New constant directory_only,
...
for -p.
(indicator_style_args, indicator_style_types): Set it appropriately.
(decode_switches, gobble_file, print_type_indicator):
(length_of_file_name_and_frills):
Implement the change described in NEWS.
(decode_switches): Quote ">", too.
(usage): Update to match the new behavior. Describe ">".
2005-04-29 21:01:04 +00:00
Paul Eggert
7d06d88f7e
(ls invocation): ls -p now marks only directories. New option
...
--indicator-style=directory equivalent to -p.
2005-04-29 21:00:01 +00:00
Paul Eggert
acb337ee55
ls -p now appends only directories. New option
...
--indicator-style=directory equivalent to -p.
2005-04-29 20:59:33 +00:00
Paul Eggert
93e157c519
(gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
...
(gl_PREREQ_RMDIR): Remove.
2005-04-29 05:37:52 +00:00
Paul Eggert
21947fea69
(gl_PREREQ): Require gl_STAT_MACROS.
2005-04-29 05:37:32 +00:00
Paul Eggert
42203a8afc
(gl_PREREQ_TEMPNAME): Check stdint.h only once.
...
Don't require AC_HEADER_STAT.
2005-04-29 05:36:52 +00:00
Paul Eggert
3c1de34561
(gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
...
it. Don't require AC_HEADER_STAT.
(gl_PREREQ_LSTAT): Remove.
2005-04-29 05:36:32 +00:00
Paul Eggert
4f3f76a4c3
(gl_FUNC_CHOWN): Don't require AC_HEADER_STAT.
2005-04-29 05:36:07 +00:00
Paul Eggert
ffbed026ca
(gl_CHECK_ALL_TYPES): Don't require AC_HEADER_STAT.
2005-04-29 05:35:44 +00:00
Paul Eggert
591126eb65
(gl_PREREQ_EUIDACCESS): Don't require AC_HEADER_STAT.
2005-04-29 05:35:22 +00:00
Paul Eggert
a516ac8256
(S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
...
[!_LIBC] Include "stat-macros.h" instead.
2005-04-29 05:34:55 +00:00
Paul Eggert
6cc5a55044
Don't mention stat-macros.h or AC_HEADER_STAT in other
...
m4 files, since we'll make the stat-macros module a prerequisite.
2005-04-28 16:55:43 +00:00
Paul Eggert
07f73eefb0
New file, from gnulib, except that gl_STAT_MACROS
...
also requires AC_HEADER_STAT.
2005-04-28 16:55:16 +00:00
Paul Eggert
9eb4658295
* file-type.c: Include file-type.h first.
...
* filetype.h: Don't assume <sys/stat.h> was included first.
2005-04-28 16:48:14 +00:00
Paul Eggert
142d83fcd6
Document recent modechange fixes.
2005-04-28 16:39:32 +00:00
Paul Eggert
e8b76516bf
Check for ug+r and ug,+x bugs.
2005-04-28 16:32:06 +00:00
Paul Eggert
67f7a0936c
Check for =u bug.
2005-04-28 16:31:49 +00:00