summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/syscall/utime.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/syscall/utime.c')
-rw-r--r--usr/src/uts/common/syscall/utime.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/src/uts/common/syscall/utime.c b/usr/src/uts/common/syscall/utime.c
index 19ce7bb972..36eddc90d2 100644
--- a/usr/src/uts/common/syscall/utime.c
+++ b/usr/src/uts/common/syscall/utime.c
@@ -83,10 +83,9 @@ cfutimesat(int fd, char *fname, int nmflag, vattr_t *vap, int flags, int follow)
}
}
- if (AU_AUDITING() && (startvp != NULL))
- audit_setfsat_path(1);
-
if ((nmflag == 1) || ((nmflag == 2) && (fname != NULL))) {
+ if (AU_AUDITING() && startvp != NULL)
+ audit_setfsat_path(1);
if ((error = lookupnameat(fname, UIO_USERSPACE,
follow, NULLVPP, &vp, startvp)) != 0) {
if (startvp != NULL)