Age | Commit message (Collapse) | Author |
|
|
|
Move "sort +1 -2" notice to the appropriate section, and clarify its
role with respect to POSIXLY_CORRECT.
|
|
|
|
file descriptor dest_desc.
|
|
|
|
if you use a numeric mode with them clear, e.g., "chmod 755 DIR".
|
|
directory has them set and they're inherited.
|
|
setgid bit more reliably on directories.
|
|
|
|
setgid on directories only if they set these bits.
|
|
a+s versus +s, and likewise for g+s.
(Numeric Modes): Bring back example of 0055 == 55. 4755 no
longer clears setgid bit on directories.
(Directory Setuid and Setgid): Numeric modes now affect setuid
and setgid on directories only if they set these bits. This
is so that leading 0 has no effect on numeric modes.
|
|
Add cross-references to Directory Setuid and Setgid.
(install-invocation): The default mode is no longer equivalent to 755.
|
|
option
* src/chown.c (usage): Likewise.
|
|
Correctly access SRC_SB's element ST_AUTHOR.
|
|
From Paul Eggert.
|
|
than having the code test for all of the other types first.
Hoist the set-uid/gid-testing code "up" into this new block.
Classify any other type of file (e.g., S_TYPEISSHM, etc.) as
C_ORPHAN, not as C_FILE.
* doc/coreutils.texi (What information is listed): Mention that missing
pieces of information are marked with "?". From Paul Eggert.
|
|
2006-07-25 Paul Eggert <eggert@cs.ucla.edu>
* src/ls.c (DT_INIT): Remove. All uses removed.
(enum filetype): Use an ordinary enum rather than trying to keep
the values in sync with DT_FIFO etc. That way, we don't have
to make special assumptions about them. All uses changed.
(whiteout): New constant member of enum filetype.
(filetype_letter): New constant, for use with enum filetype.
(FILETYPE_INDICATORS): New initializer list.
(print_dir): Add case for DT_WHT.
(gobble_file): If stat fails, don't discard information from
readdir; instead, preserve it so it can be printed.
(print_long_format): Fall back on readdir result if stat info
is not available. Use "?" to denote each unknown mode char,
instead of an overall "?", since we now know some of the mode
typically.
(print_type_indicator): Now that MODE isn't necessarily
useful, guard all uses.
Now that two blocks in the type-checking tree can set "type = C_FILE",
move the suffix-handling code out and down.
|
|
* src/ls.c [struct fileinfo] (stat_ok): Rename from stat_failed,
and adjust uses. From a patch by Paul Eggert.
|
|
|
|
statements about compatibility with BSD.
|
|
|
|
GNU extension, and that other systems behave differently here.
|
|
print the entry name not the absolute_name -- to be consistent
with the usual case.
* tests/ls/stat-failed: Update accordingly.
|
|
of "cannot access " to diagnostic.
|
|
|
|
|
|
|
|
* src/ls.c (print_long_format): Be careful to increment P by the
appropriate amount, even when inode_number_width and nlink_width
are zero.
* tests/ls/stat-failed: Test for the above.
|
|
have_acl member. That would happen for a directory with both a
non-stat'able entry and one with an ACL.
|
|
non-command-line file provokes an exit status of 1, not 0.
Say "cannot access" rather than "cannot stat".
* tests/ls/stat-failed: New file/test, for the above.
* tests/ls/Makefile.am (TESTS): Add stat-failed.
|
|
|
|
Replace all occurrences of "type == command_line" with the
equivalent, "command_line_arg".
|
|
coreutils-selinux.patch. From Ulrich Drepper.
This makes it so files not mentioned on the command line (e.g.,
names read from a directory that *is* mentioned on the command
line) for which stat fails are still listed. With --color,
such files are colored just like ORPHANs (aka dangling symlinks).
|
|
|
|
|
|
|
|
|
|
|
|
about distinguishing file mode bits from permissions bits,
and about execute versus search permission. The FreeBSD command
is chflags, not chrflags.
|
|
restricts only unprivileged users.
|
|
flag is another name for the sticky bit.
|
|
|
|
|
|
|
|
|
|
Reported by Tim Waugh.
Also remove the comment duplicating much of --help output.
|
|
|
|
alphabetized.
|
|
|
|
|