This fixes another LSB test suite failure.
EPERM in errno and a return value of -1 on a call to utime() when
the times argument is not NULL and the calling process's effective
user ID has write access to the file but does not match the owner
of the file and the calling process does not have appropriate
privileges. The file times shall not be affected.
RETURN VALUES: expected: -1, observed: 0
ERRNO VALUES: expected: 1 (EPERM), observed: 0 (NO ERROR)
xfs_setattr had the correct code to check it, but it needed proper flags
passed in from linvfs_setattr.
Date: Mon Mar 18 08:32:21 PST 2002
Workarea: stout.americas.sgi.com:/localhome/eric/2.4.x-xfs/workarea-alwaysclean
The following file(s) were checked into:
bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs
Modid: 2.4.x-xfs:slinx:114345a
linux/fs/xfs/linux/xfs_iops.c - 1.127
- pass flag to xfs_setattr for correct utime permissions checking
|