GNU bug report logs - #8391
chmod setuid & setguid bits

Previous Next

Package: coreutils;

Reported by: Christian <chris <at> computersalat.de>

Date: Thu, 31 Mar 2011 16:48:04 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #83 received at 8391 <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: bug-gnulib <at> gnu.org, ovasik <at> redhat.com
Cc: chris <at> computersalat.de, Paul Eggert <eggert <at> cs.ucla.edu>,
	Eric Blake <eblake <at> redhat.com>, 8391 <at> debbugs.gnu.org
Subject: Re: bug#8391: chmod setuid & setguid bits
Date: Mon, 05 Mar 2012 17:42:08 +0100
Ondrej Vasik cited Paul Eggert:
> > recommend leading '@' for future scripts.

This use of '@' in a mode string conflicts with the use of '@' on
MacOS X 10.5 and newer to designate "extended attributes" (like
quarantine information on MacOS X 10.7).

$ /bin/ls -l /etc/ntp.conf
-rw-r--r--@ 1 root  wheel  27 Apr  5  2008 /etc/ntp.conf

$ /bin/ls -l@ /etc/ntp.conf
-rw-r--r--@ 1 root  wheel  27 Apr  5  2008 /etc/ntp.conf
        com.apple.TextEncoding  15 

You can see that both in the mode string (-rw-r--r--@) as well as among the
'/bin/ls' command-line option, the '@' has the meaning "extended attributes".

Having GNU coreutils interpret "@rw-r--r--" in a completely different way would
be counterintuive and confusing.

Bruno





This bug report was last modified 13 years and 80 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.