diff options
Diffstat (limited to 'xlators/storage/posix/src/posix.c')
-rw-r--r-- | xlators/storage/posix/src/posix.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 0f784f28e97..1d21a63512d 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -619,7 +619,10 @@ posix_do_utimes (xlator_t *this, tv[1].tv_sec = stbuf->st_mtime; tv[1].tv_usec = ST_MTIM_NSEC (stbuf) / 1000; - ret = utimes (path, tv); + ret = lutimes (path, tv); + if ((ret == -1) && (errno == ENOSYS)) { + ret = utimes (path, tv); + } return ret; } |