This is a patch file for "coreutils" 8.25. By default, the version of "ls" provided with "coreutils" 8.19 includ- es a distracting feature. Specifically, if "ls" colors are enabled, the names of world-writable directories are displayed using inverse video. This is a security feature, but it's triggered frequently by source tarballs, and it's arguably pointless in that context. The following change disables the feature. This change should be com- patible with most or all distros. Note: "ls" also uses inverse video to flag directories that have the "sticky" bit set. This change doesn't affect the use of inverse video in the "sticky"-bit context (except where both "sticky" and "world- writable" are set). --- coreutils-8.25.old/src/ls.c +++ coreutils-8.25/src/ls.c @@ -4406,6 +4406,7 @@ { type = C_DIR; +#ifdef NOTDEF // Disable a distracting feature if ((mode & S_ISVTX) && (mode & S_IWOTH) && is_colored (C_STICKY_OTHER_WRITABLE)) type = C_STICKY_OTHER_WRITABLE; @@ -4413,6 +4414,10 @@ type = C_OTHER_WRITABLE; else if ((mode & S_ISVTX) != 0 && is_colored (C_STICKY)) type = C_STICKY; +#else + if ((mode & S_ISVTX) != 0 && is_colored (C_STICKY)) + type = C_STICKY; +#endif // Endif NOTDEF } else if (S_ISLNK (mode)) type = C_LINK;