Re: issue with unsetting 'arch' flag

2010-10-10 Thread Garrett Cooper
On Thu, Oct 7, 2010 at 3:36 AM, Alexander Best wrote: > On Wed Oct  6 10, Garrett Cooper wrote: >> On Wed, Oct 6, 2010 at 4:03 PM, Garrett Cooper wrote: >> > On Wed, Oct 6, 2010 at 3:01 PM, Sergey Kandaurov wrote: >> >> On 6 October 2010 23:38, Alexander Best wrote: >> >>> On Wed Oct  6 10, Gar

Re: issue with unsetting 'arch' flag

2010-10-07 Thread Garrett Cooper
On Thu, Oct 7, 2010 at 11:45 AM, Jaakko Heinonen wrote: > On 2010-10-06, Alexander Best wrote: >> $ sudo rm -d /tmp/chflags.XX >> $ tmpfile=`mktemp /tmp/chflags.XX` >> $ sudo chflags arch $tmpfile >> $ chflags noarch $tmpfile >> >> is what's causing the problem. the last chflags call shoul

Re: issue with unsetting 'arch' flag

2010-10-07 Thread Garrett Cooper
On Thu, Oct 7, 2010 at 12:43 PM, Sergey Kandaurov wrote: > On 7 October 2010 22:45, Jaakko Heinonen wrote: >> On 2010-10-06, Alexander Best wrote: >>> $ sudo rm -d /tmp/chflags.XX >>> $ tmpfile=`mktemp /tmp/chflags.XX` >>> $ sudo chflags arch $tmpfile >>> $ chflags noarch $tmpfile >>> >>>

Re: issue with unsetting 'arch' flag

2010-10-07 Thread Sergey Kandaurov
On 7 October 2010 22:45, Jaakko Heinonen wrote: > On 2010-10-06, Alexander Best wrote: >> $ sudo rm -d /tmp/chflags.XX >> $ tmpfile=`mktemp /tmp/chflags.XX` >> $ sudo chflags arch $tmpfile >> $ chflags noarch $tmpfile >> >> is what's causing the problem. the last chflags call should fail,

Re: issue with unsetting 'arch' flag

2010-10-07 Thread Jaakko Heinonen
On 2010-10-06, Alexander Best wrote: > $ sudo rm -d /tmp/chflags.XX > $ tmpfile=`mktemp /tmp/chflags.XX` > $ sudo chflags arch $tmpfile > $ chflags noarch $tmpfile > > is what's causing the problem. the last chflags call should fail, but it > doesn't. Here is a patch for UFS: %%% Index:

Re: issue with unsetting 'arch' flag

2010-10-07 Thread Alexander Best
On Wed Oct 6 10, Garrett Cooper wrote: > On Wed, Oct 6, 2010 at 4:03 PM, Garrett Cooper wrote: > > On Wed, Oct 6, 2010 at 3:01 PM, Sergey Kandaurov wrote: > >> On 6 October 2010 23:38, Alexander Best wrote: > >>> On Wed Oct  6 10, Garrett Cooper wrote: > On Wed, Oct 6, 2010 at 10:35 AM, Al

Re: issue with unsetting 'arch' flag

2010-10-06 Thread Garrett Cooper
On Wed, Oct 6, 2010 at 4:03 PM, Garrett Cooper wrote: > On Wed, Oct 6, 2010 at 3:01 PM, Sergey Kandaurov wrote: >> On 6 October 2010 23:38, Alexander Best wrote: >>> On Wed Oct  6 10, Garrett Cooper wrote: On Wed, Oct 6, 2010 at 10:35 AM, Alexander Best wrote: > On Wed Oct  6 10

Re: issue with unsetting 'arch' flag

2010-10-06 Thread Garrett Cooper
On Wed, Oct 6, 2010 at 3:01 PM, Sergey Kandaurov wrote: > On 6 October 2010 23:38, Alexander Best wrote: >> On Wed Oct  6 10, Garrett Cooper wrote: >>> On Wed, Oct 6, 2010 at 10:35 AM, Alexander Best wrote: >>> > On Wed Oct  6 10, Garrett Cooper wrote: >>> >> On Tue, Oct 5, 2010 at 4:50 PM, Alex

Re: issue with unsetting 'arch' flag

2010-10-06 Thread Sergey Kandaurov
On 6 October 2010 23:38, Alexander Best wrote: > On Wed Oct  6 10, Garrett Cooper wrote: >> On Wed, Oct 6, 2010 at 10:35 AM, Alexander Best wrote: >> > On Wed Oct  6 10, Garrett Cooper wrote: >> >> On Tue, Oct 5, 2010 at 4:50 PM, Alexander Best >> >> wrote: >> >> > hi there, >> >> > >> >> > i t

Re: issue with unsetting 'arch' flag

2010-10-06 Thread Alexander Best
On Wed Oct 6 10, Garrett Cooper wrote: > On Wed, Oct 6, 2010 at 10:35 AM, Alexander Best wrote: > > On Wed Oct  6 10, Garrett Cooper wrote: > >> On Tue, Oct 5, 2010 at 4:50 PM, Alexander Best wrote: > >> > hi there, > >> > > >> > i think the following example shows the problem better than a long

Re: issue with unsetting 'arch' flag

2010-10-06 Thread Garrett Cooper
On Wed, Oct 6, 2010 at 10:35 AM, Alexander Best wrote: > On Wed Oct  6 10, Garrett Cooper wrote: >> On Tue, Oct 5, 2010 at 4:50 PM, Alexander Best wrote: >> > hi there, >> > >> > i think the following example shows the problem better than a long >> > explanation: >> > >> > `touch ftest && chflag

Re: issue with unsetting 'arch' flag

2010-10-06 Thread Alexander Best
On Wed Oct 6 10, Garrett Cooper wrote: > On Tue, Oct 5, 2010 at 4:50 PM, Alexander Best wrote: > > hi there, > > > > i think the following example shows the problem better than a long > > explanation: > > > > `touch ftest && chflags arch ftest && chflags -vv 0 ftest`. > >  ^^non-root     ^^root

Re: issue with unsetting 'arch' flag

2010-10-06 Thread Garrett Cooper
On Tue, Oct 5, 2010 at 4:50 PM, Alexander Best wrote: > hi there, > > i think the following example shows the problem better than a long > explanation: > > `touch ftest && chflags arch ftest && chflags -vv 0 ftest`. >  ^^non-root     ^^root                ^^non-root > > chflags claims to have cle

Re: issue with unsetting 'arch' flag

2010-10-06 Thread Bruce Cran
On Wednesday 06 October 2010 00:50:54 Alexander Best wrote: > `touch ftest && chflags arch ftest && chflags -vv 0 ftest`. > ^^non-root ^^root^^non-root > > chflags claims to have cleared the 'arch' flag (which should be impossible > as non-root user), but indeed has done noth

issue with unsetting 'arch' flag

2010-10-05 Thread Alexander Best
hi there, i think the following example shows the problem better than a long explanation: `touch ftest && chflags arch ftest && chflags -vv 0 ftest`. ^^non-root ^^root^^non-root chflags claims to have cleared the 'arch' flag (which should be impossible as non-root user), but