Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 May 2004 12:58:08 -0700
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Craig Reyenga <creyenga@connectmail.carleton.ca>
Cc:        freebsd-current@freebsd.org
Subject:   Re: setfacl and mtime
Message-ID:  <40AD0DD0.90900@freebsd.org>
In-Reply-To: <000501c43d74$19dc5fb0$0200000a@redline>
References:  <000501c43d74$19dc5fb0$0200000a@redline>

next in thread | previous in thread | raw e-mail | index | archive | help
Craig Reyenga wrote:
> 
> I've been toying with ACLs lately, and I noticed that ACL operations change
> the mtime of the file, whereas chmod does not. Is this functionality
> intentional? More importantly, can it be turned off?

In particular, this is yet another way that the following two
commands seem to differ, even though (by my understanding), they
should be exactly interchangable:

   chmod u=rw file
   setfacl -m user::rw- file

The second changes the mtime, the first does not.
The second does not work on all filesystems, the first does.

The ACL routines I wrote for bsdtar (long story why
this was necessary...)  are careful to convert changes
to basic ACL entries (such as the second example above)
to the equivalent chmod.  It seems to me that the
library/kernel acl routines should also behave this way?

Tim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40AD0DD0.90900>