Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jan 2001 13:40:04 -0800 (PST)
From:      Daniel Hagan <dhagan@colltech.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/23990: access(2) system call reports an immutable file as  writable
Message-ID:  <200101032140.f03Le4544791@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/23990; it has been noted by GNATS.

From: Daniel Hagan <dhagan@colltech.com>
To: freebsd-gnats-submit@FreeBSD.org, jau@iki.fi
Cc:  
Subject: Re: kern/23990: access(2) system call reports an immutable file as 
 writable
Date: Wed, 03 Jan 2001 16:36:02 -0500

 temp.c ----
 #include <unistd.h>
 main() {
   printf("%d\n", access("blah", W_OK));
 }
 -----> compiled into a.out
 
 % touch blah
 % chflags uchg blah
 % ls -lo
 -rw-------  1 dhagan  dhagan  uchg    0 Jan  3 16:30 blah
 % ./a.out 
 -1
 % chflags nouchg blah
 % ./a.out
 0
 
 Seems to work ok to me.  Maybe this was a problem in 3.5.1.  I'd try
 upgrading to the 4.x branch.
 
 Daniel
 


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?200101032140.f03Le4544791>