Commit Graph
23455 Commits
Author SHA1 Message Date
Jim Meyering a321dfb09d * src/ls.c: Declare stat_failed to be "bool", not "int" everywhere. 2006-07-25 15:13:56 +00:00
Jim Meyering 1827b515aa * src/ls.c [enum filetype] (command_line): Remove member. Not needed.
Replace all occurrences of "type == command_line" with the
equivalent, "command_line_arg".
2006-07-25 15:12:26 +00:00
Jim Meyering ccb1883fcd * src/ls.c: Apply the stat-failed parts of Red Hat's
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).
2006-07-25 15:09:56 +00:00
Jim Meyering 427a636ae3 . 2006-07-25 14:34:39 +00:00
Jim Meyering 0ff7cb7f69 vc-list-files: Handle git repositories, too. 2006-07-25 14:10:12 +00:00
Jim Meyering 627f9b7fb1 * src/df.c (n_valid_args): Declare global to be static. 2006-07-25 14:06:21 +00:00
Jim Meyering f2641bb9f7 Skip this test on reiserfs, since that file system lacks d_type support. 2006-07-24 14:02:35 +00:00
Paul Eggert 7192610528 Update to reflect recent changes to coreutils.texi. 2006-07-23 01:27:27 +00:00
Paul Eggert bdcc26e24b (Mode Structure, Symbolic Modes, Numeric Modes): Be more careful
about distinguishing file mode bits from permissions bits,
and about execute versus search permission.  The FreeBSD command
is chflags, not chrflags.
2006-07-23 01:26:56 +00:00
Paul Eggert a29aa4faa6 (Mode Structure): The restricted deletion flag
restricts only unprivileged users.
2006-07-22 23:42:19 +00:00
Paul Eggert e27208b635 (What information is listed): Clarify that the restricted deletion
flag is another name for the sticky bit.
2006-07-22 23:41:43 +00:00
Paul Eggert e718c61a7c Split closeout into close-stream and closeout. 2006-07-22 22:28:53 +00:00
Paul Eggert 554d94c647 (close_stdout): Use new function close_stream. 2006-07-22 22:27:17 +00:00
Paul Eggert 2df2295d68 Initial revision. 2006-07-22 22:26:04 +00:00
Paul Eggert 0971f7f44a (gl_PREREQ): Require gl_CLOSE_STREAM. 2006-07-22 22:23:43 +00:00
Jim Meyering c6a13a3354 * src/su.c (usage): Correct typo in --help output: s/commmand/command/
Reported by Tim Waugh.
Also remove the comment duplicating much of --help output.
2006-07-21 13:32:40 +00:00
Jim Meyering 680bd6f6dd *** empty log message *** 2006-07-21 09:14:43 +00:00
Jim Meyering a1eae84aed (FILE_TYPE_INDICATOR_OPTION): Reposition this new name so the list remains alphabetized. 2006-07-21 09:14:39 +00:00
Jim Meyering 2c5f6e6e2c mention yesterday's other ls bugfix 2006-07-21 08:58:00 +00:00
Jim Meyering eb12ed1aa7 *** empty log message *** 2006-07-21 08:57:47 +00:00
Jim Meyering 9e0a095be6 Fix another bug: ls --indicator-style=file-type would call
stat for a symlink, even though it wasn't always needed.
In some cases, that unnecessary stat would cause ls to fail.
* src/ls.c (gobble_file): Don't treat symlinks specially (in
requiring a stat syscall).  Remove the offending exclusion.
* NEWS: Mention the fix.
* tests/ls/stat-dtype: New file/test, for the above fix.
Also exercises the new df feature, below.
2006-07-21 08:49:24 +00:00
Jim Meyering 2060c55141 * src/df.c (main): Fail and don't print the headers if no
file system is processed.  This makes it easy to test whether
a specified directory is on a file system of a given type or types.
Otherwise, applications would have had to parse df's output.
E.g., is "." either ext3 or reiserfs: df -t ext3 -t reiserfs .
2006-07-20 15:42:26 +00:00
Jim Meyering 6ad7eac04f *** empty log message *** 2006-07-20 10:31:48 +00:00
Jim Meyering 492f011795 (file-type): New test:
For 5.97 and earlier, --file-type acted like --indicator-style=slash.
2006-07-20 10:30:42 +00:00
Jim Meyering 3ddfde6897 Fix a bug: ls --file-type worked like --indicator-style=slash,
rather than like --indicator-style=file-type.

(FILE_TYPE_INDICATOR_OPTION): New enum member.
(long_options): Map "file-type" to FILE_TYPE_INDICATOR_OPTION,
not to 'p'.
(decode_switches): Handle new case: FILE_TYPE_INDICATOR_OPTION.
2006-07-20 10:20:23 +00:00
Jim Meyering aa91e4fe34 *** empty log message *** 2006-07-20 08:34:22 +00:00
Jim Meyering 6e41860c41 [ME_REMOTE]: Filter out cifs.
Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
2006-07-20 08:34:15 +00:00
Jim Meyering 6e31234fbb *** empty log message *** 2006-07-20 08:33:19 +00:00
Jim Meyering 84d2889e40 *** empty log message *** 2006-07-20 07:57:10 +00:00
Jim Meyering db42e50e5e (ME_REMOTE): Compare strchr's result to NULL, not 0, for better readability. 2006-07-20 07:57:06 +00:00
Jim Meyering 7d97c337a7 * src/ls.c (print_dir): Give a better diagnostic for failed opendir. 2006-07-19 10:36:02 +00:00
Jim Meyering 30e6fc491f *** empty log message *** 2006-07-19 09:56:03 +00:00
Jim Meyering 865bf3e4ff (EXTRA_DIST): Add build-aux/vc-list-files. 2006-07-19 09:54:53 +00:00
Jim Meyering 603da96fbd *** empty log message *** 2006-07-19 09:54:32 +00:00
Jim Meyering 6f91fb9595 Command line args correspond to an "include" list, not an exclude list. 2006-07-19 09:54:28 +00:00
Jim Meyering 76d82ec5cc tweak spacing to align backslashes 2006-07-19 08:43:27 +00:00
Paul Eggert f8e8d8dd69 In comment: bits bits -> bits. 2006-07-17 05:56:28 +00:00
Paul Eggert a58ac00556 Regenerate. 2006-07-17 03:52:18 +00:00
Paul Eggert 16f64d42ba Regenerate. 2006-07-17 03:51:25 +00:00
Paul Eggert 6d62ac46ce Fix typo in previous checkin; some file names were wrong. 2006-07-17 03:35:18 +00:00
Paul Eggert 628c7baa85 chmod, install, and mkdir now leave setgid and setuid bits
of directories alone unless you specify them explicitly.
install and mkdir now implement X correctly.
install now creates parent directories with mode 755, without
changing their owner or group.
2006-07-17 03:13:14 +00:00
Paul Eggert d847e28b37 Add a test for the X bug. 2006-07-17 03:12:44 +00:00
Paul Eggert 01014bb951 Remove re_protect case that no longer applies.
GNU chmod now behaves like other versions of chmod.
2006-07-17 03:12:22 +00:00
Paul Eggert 4d9d2da4a8 Do the setgid test instead of bailing. 2006-07-17 03:11:51 +00:00
Paul Eggert 577faf65e3 (main): Adjust to new mode_adjust API. 2006-07-17 03:11:01 +00:00
Paul Eggert 1d396d7008 (main): Adjust to new mode_adjust API. 2006-07-17 03:10:29 +00:00
Paul Eggert 76b12f0005 (struct mkdir_options): New struct.
(announce_mkdir, make_ancestor): New functions.
(main): Use them.  Adjust to mode_adjust API change.  Stick with
umask 0.  Use make_dir_parents for all the work.
2006-07-17 03:10:10 +00:00
Paul Eggert 83978a5654 Include mkancesdirs.h.
(announce_mkdir, make_ancestor): New functions.
(DEFAULT_MODE): New macro, specifying initial value of 'mode'.
(mode): Use it.
(dir_mode, dir_mode_bits): New vars.
(main): Set dir modes separately from nondir, so that the X
op of -m works correctly.
(main): Remove cwd_errno cruft, since make_dir_parents no longer
affects cwd.  Adjust to new make_dir_parents API.
(install_file_in_file_parents): 2nd arg is now char *, not char
const *.  Use mkancesdirs instead of rolling our own code.
(change_attributes): Don't worry about AFS, since that kludge
should not be needed any more.
2006-07-17 03:09:49 +00:00
Paul Eggert 8401b6ae54 (process_file): Adjust to mode_adjust API change. 2006-07-17 03:09:26 +00:00
Paul Eggert c09c4070ff (gl_PREREQ): Require gl_MKANCESDIRS. 2006-07-17 03:09:09 +00:00