Re: issue with unsetting 'arch' flag

2010-10-10 Thread Garrett Cooper
On Thu, Oct 7, 2010 at 3:36 AM, Alexander Best arun...@freebsd.org wrote: On Wed Oct  6 10, Garrett Cooper wrote: On Wed, Oct 6, 2010 at 4:03 PM, Garrett Cooper gcoo...@freebsd.org wrote: On Wed, Oct 6, 2010 at 3:01 PM, Sergey Kandaurov pluk...@gmail.com wrote: On 6 October 2010 23:38,

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 gcoo...@freebsd.org wrote: On Wed, Oct 6, 2010 at 3:01 PM, Sergey Kandaurov pluk...@gmail.com wrote: On 6 October 2010 23:38, Alexander Best arun...@freebsd.org wrote: On Wed Oct  6 10, Garrett Cooper

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 Sergey Kandaurov
On 7 October 2010 22:45, Jaakko Heinonen j...@freebsd.org 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

Re: issue with unsetting 'arch' flag

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

Re: issue with unsetting 'arch' flag

2010-10-07 Thread Garrett Cooper
On Thu, Oct 7, 2010 at 11:45 AM, Jaakko Heinonen j...@freebsd.org 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

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 nothing. I

Re: issue with unsetting 'arch' flag

2010-10-06 Thread Garrett Cooper
On Tue, Oct 5, 2010 at 4:50 PM, Alexander Best arun...@freebsd.org 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

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 arun...@freebsd.org 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 Wed, Oct 6, 2010 at 10:35 AM, Alexander Best arun...@freebsd.org wrote: On Wed Oct  6 10, Garrett Cooper wrote: On Tue, Oct 5, 2010 at 4:50 PM, Alexander Best arun...@freebsd.org wrote: hi there, i think the following example shows the problem better than a long explanation:

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 arun...@freebsd.org wrote: On Wed Oct  6 10, Garrett Cooper wrote: On Tue, Oct 5, 2010 at 4:50 PM, Alexander Best arun...@freebsd.org wrote: hi there, i think the following example shows the

Re: issue with unsetting 'arch' flag

2010-10-06 Thread Sergey Kandaurov
On 6 October 2010 23:38, Alexander Best arun...@freebsd.org wrote: On Wed Oct  6 10, Garrett Cooper wrote: On Wed, Oct 6, 2010 at 10:35 AM, Alexander Best arun...@freebsd.org wrote: On Wed Oct  6 10, Garrett Cooper wrote: On Tue, Oct 5, 2010 at 4:50 PM, Alexander Best arun...@freebsd.org

Re: issue with unsetting 'arch' flag

2010-10-06 Thread Garrett Cooper
On Wed, Oct 6, 2010 at 3:01 PM, Sergey Kandaurov pluk...@gmail.com wrote: On 6 October 2010 23:38, Alexander Best arun...@freebsd.org wrote: On Wed Oct  6 10, Garrett Cooper wrote: On Wed, Oct 6, 2010 at 10:35 AM, Alexander Best arun...@freebsd.org wrote: On Wed Oct  6 10, Garrett Cooper

Re: issue with unsetting 'arch' flag

2010-10-06 Thread Garrett Cooper
On Wed, Oct 6, 2010 at 4:03 PM, Garrett Cooper gcoo...@freebsd.org wrote: On Wed, Oct 6, 2010 at 3:01 PM, Sergey Kandaurov pluk...@gmail.com wrote: On 6 October 2010 23:38, Alexander Best arun...@freebsd.org wrote: On Wed Oct  6 10, Garrett Cooper wrote: On Wed, Oct 6, 2010 at 10:35 AM,

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