]> git.ipfire.org Git - thirdparty/coreutils.git/commit
"ls --color" would highlight other-writable and sticky directories
authorJim Meyering <jim@meyering.net>
Sat, 26 Aug 2006 06:46:17 +0000 (06:46 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 26 Aug 2006 06:46:17 +0000 (06:46 +0000)
commit967e0c11eaecf01a8596b8b48e8ef8edc85318fd
treea2a82cd27535db0155b670dda7c96133d0d2fe6e
parent0d41cd8f2927d896f373fb6076c2508c9284a978
"ls --color" would highlight other-writable and sticky directories
no differently than regular directories on a file system with
dirent.d_type support.
* NEWS: Say the above.
* src/ls.c (gobble_file): With --color, also stat the file when
we know it is a directory.
Derived from an anonymous one-line fix and bug report:
<https://savannah.gnu.org/bugs/?15043>.
* tests/ls/color-dtype-dir: New file.  Test for the above fix.
* tests/ls/Makefile.am (TESTS): Add color-dtype-dir.
ChangeLog
NEWS
src/ls.c
tests/ls/Makefile.am
tests/ls/color-dtype-dir [new file with mode: 0755]