Date: Wed, 12 Nov 2008 17:43:45 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Charles Darwin <DarwinsKernel@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Is chflags' "nodump + sunlnk" = "uchg" Message-ID: <20081112234345.GL85407@dan.emsphone.com> In-Reply-To: <99926641-6491-4F76-B2D2-73B1C6D52033@gmail.com> References: <99926641-6491-4F76-B2D2-73B1C6D52033@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Nov 12), Charles Darwin said: > Hi all, > > Title is the question actually: Is chflags' "nodump + sunlnk" = "uchg" No; why would it be? From /usr/include/sys/stat.h: #define UF_NODUMP 0x00000001 /* do not dump file */ #define SF_NOUNLINK 0x00100000 /* file may not be removed or renamed */ #define UF_IMMUTABLE 0x00000002 /* file may not be changed */ nodump+sunlnk would be 0x00100001, while uchg is 0x00000002 . # touch a b # chflags nodump,sunlnk a # chflags uchg b # ls -lo a b -rw-r--r-- 1 root wheel sunlnk,nodump 0 Nov 12 17:42 a -rw-r--r-- 1 root wheel uchg 0 Nov 12 17:42 b # -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081112234345.GL85407>