diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/bsd-misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index d3a41df50..3c85a12a6 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c | |||
@@ -143,8 +143,10 @@ utimensat(int fd, const char *path, const struct timespec times[2], | |||
143 | # ifndef HAVE_FUTIMES | 143 | # ifndef HAVE_FUTIMES |
144 | return utimes(path, tv); | 144 | return utimes(path, tv); |
145 | # else | 145 | # else |
146 | # ifdef O_NOFOLLOW | ||
146 | if (flag & AT_SYMLINK_NOFOLLOW) | 147 | if (flag & AT_SYMLINK_NOFOLLOW) |
147 | oflags |= O_NOFOLLOW; | 148 | oflags |= O_NOFOLLOW; |
149 | # endif /* O_NOFOLLOW */ | ||
148 | if ((fd = open(path, oflags)) == -1) | 150 | if ((fd = open(path, oflags)) == -1) |
149 | return -1; | 151 | return -1; |
150 | ret = futimes(fd, tv); | 152 | ret = futimes(fd, tv); |