Date: Fri, 23 Mar 2001 15:35:59 -0800 (PST) From: <mpp@FreeBSD.org> To: jau@iki.fi, mpp@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/23990: access(2) system call reports an immutable file as writable Message-ID: <200103232335.f2NNZxF49499@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: access(2) system call reports an immutable file as writable State-Changed-From-To: open->closed State-Changed-By: mpp State-Changed-When: Fri Mar 23 15:25:52 PST 2001 State-Changed-Why: I've verified that the access(2) system call returns the correct value when testing if immutable files can be written. I tested on 4.0, 4.2-stable, and 5.0-current. I think you may not have been confused about how the "access" command was working (the one I've got on my system was installed as part of the teTeX port). It appears to just be a very stripped down version of the "test" command. Here is output from a session: Script started on Fri Mar 23 17:19:33 2001 acme 1% touch testfile acme 2% access -w testfile acme 3% echo $status 0 acme 4% chflags uchg testfile acme 5% access -w testfile acme 6% echo $status 1 acme 7% exit exit Script done on Fri Mar 23 17:20:04 2001 Note that the command doesn't output any messages if access to the file is not allowed. http://www.freebsd.org/cgi/query-pr.cgi?pr=23990 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103232335.f2NNZxF49499>
