From: Jim Meyering Date: Mon, 5 Sep 2005 17:11:15 +0000 (+0000) Subject: Colorize set-user-ID and set-group-ID files and sticky, X-Git-Tag: v5.90~299 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=200572872f4e96e7c70db4ed7c11b3efa151eb63;p=thirdparty%2Fcoreutils.git Colorize set-user-ID and set-group-ID files and sticky, other-writable, and sticky-and-other-writable directories. (slack_codes): Add new dircolors mode names. (ls_codes): Add corresponding two-letter ls mode strings. From Mike Frysinger, based on a patch from Fedora. --- diff --git a/src/dircolors.c b/src/dircolors.c index 02d82bf899..b73f9252b7 100644 --- a/src/dircolors.c +++ b/src/dircolors.c @@ -67,13 +67,15 @@ static const char *const slack_codes[] = "NORMAL", "NORM", "FILE", "DIR", "LNK", "LINK", "SYMLINK", "ORPHAN", "MISSING", "FIFO", "PIPE", "SOCK", "BLK", "BLOCK", "CHR", "CHAR", "DOOR", "EXEC", "LEFT", "LEFTCODE", "RIGHT", "RIGHTCODE", - "END", "ENDCODE", NULL + "END", "ENDCODE", "SUID", "SETUID", "SGID", "SETGID", "STICKY", + "OTHER_WRITABLE", "OWR", "STICKY_OTHER_WRITABLE", "OWT", NULL }; static const char *const ls_codes[] = { "no", "no", "fi", "di", "ln", "ln", "ln", "or", "mi", "pi", "pi", "so", "bd", "bd", "cd", "cd", "do", "ex", "lc", "lc", "rc", "rc", "ec", "ec" + "su", "su", "sg", "sg", "st", "ow", "ow", "tw", "tw", NULL }; static struct option const long_options[] =