more re: openbsd setattr bug

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

more re: openbsd setattr bug

Rick Macklem-3
Oops, yes, you are correct. If VA_UTIMES_NULL is not set, it will return
whatever error suser() has returned (presumably EPERM).

Since VA_UTIMES_NULL is new to me, I have no idea if/when it should be
set? (I'll look at that and check it for my server.)

rick

Reply | Threaded
Open this post in threaded view
|

Re: more re: openbsd setattr bug

Otto Moerbeek
On Mon, 27 Mar 2006, [hidden email] wrote:

> Oops, yes, you are correct. If VA_UTIMES_NULL is not set, it will return
> whatever error suser() has returned (presumably EPERM).
>
> Since VA_UTIMES_NULL is new to me, I have no idea if/when it should be
> set? (I'll look at that and check it for my server.)
 
VA_UTIMES_NULL is the flag that is set by utimes(2) if the timestamp
arg is NULL.

That has the effect of allowing the setattr vfs call if the file is
writable (in addition to the the normal cases: owner or root).

        -Otto