This is the mail archive of the
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] Updated: coreutils-5.93-3
-----BEGIN PGP SIGNED MESSAGE-----
According to Angelo Graziosi on 1/27/2006 3:39 AM:
> Some days ago, I installed coreutils 5.93-3 as exp. package.
> After upgrading to base-files-3.7-1, I reinstalled coreutils-5.93-3 but I
> discovered that /etc/DIR_COLORS was that of base-files-3.6-1 and not
> 3.7-1. (and the command 'cygcheck -c coreutils base-files' said 'OK')
> So after many tries I reinstalled:
> After this, /etc/DIR_COLORS was that of 3.7-1!
Thanks for the howto. It boils down to the fact that base-files will only
replace /etc/DIR_COLORS on upgrade if it matches
/etc/defaults/etc/DIR_COLORS, but by upgrading coreutils first,
/etc/defaults/etc/DIR_COLORS was changed first. A shorter path to
reverting, then reinstalling, both packages would have been to manually
run "cp /etc/defaults/etc/DIR_COLORS /etc/DIR_COLORS" after both new
packages are installed and cygcheck reports OK.
> Now having
> alias ls='ls --color --show-control-chars'
> (I have tried also alias ls='ls --color=auto') never is changed in
> diplaying the colors, i.e. the directory with all permission
> drwxrwxrwx+ 4 Administrator Administrators 0 Jan 12 21:47 home
> is displayed blue on green background.
Reread the release notes for coreutils-5.93 - there are new categories
added to dircolors/ls, and one of these is OTHER_WRITABLE. Any directory
that is world-writable, but does not have the sticky bit set, is a
security risk, since anyone else can replace files in that directory that
you have created with their own. ls colors them differently by default to
warn you of that fact. If it bothers you, you can use a custom input file
to dircolors that sets the color of that category to match the DIR
> Is this the default behaviour of /etc/DIR_COLORS ?
Yes, /etc/DIR_COLORS lists the default category colors that will be
applied by "ls --color" if you don't run dircolors to set LS_COLORS in
your environment. It takes a customization of /etc/DIR_COLORS (or an
alternate file) to change the category colors, then run dircolors to set
the LS_COLORS environment variable appropriately, before ls will then use
your desired colors instead of its defaults.
Life is short - so eat dessert first!
Eric Blake email@example.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html