From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 5 23:50:54 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id EA90A1065673; Tue, 5 Oct 2010 23:50:54 +0000 (UTC) Date: Tue, 5 Oct 2010 23:50:54 +0000 From: Alexander Best To: freebsd-hackers@freebsd.org Message-ID: <20101005235054.GA45827@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: issue with unsetting 'arch' flag X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 23:50:55 -0000 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 indeed has done nothing. i've tried the same with 'sappnd' and that works as can be expected. The issue was confirmed to exist in HEAD (me), stable/8 (pgollucc1, jpaetzel) and stable/7 (nox). On stable/6 it does NOT exist (jpaetzel). chflags properly fails with EPERM. cheers. alex -- a13x