summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-09-16 18:52:45 +0200
committerBjörn Jacke <bj@sernet.de>2010-09-16 21:38:19 +0200
commitec643df212e521fc19119820b1e4fac15986bf28 (patch)
tree4857a061508f94a9869233d0581fa93829a12eb4
parent0858b7546eebf9e853e4e7288b50edbcdcdc5826 (diff)
downloadsamba-ec643df212e521fc19119820b1e4fac15986bf28.tar.gz
samba-ec643df212e521fc19119820b1e4fac15986bf28.tar.bz2
samba-ec643df212e521fc19119820b1e4fac15986bf28.zip
s3/vfs_scannedonly: use smb_msleep instead of nanosleep
Thanks to Joachim Schmitz. This fixes bug #7478
-rw-r--r--source3/modules/vfs_scannedonly.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/modules/vfs_scannedonly.c b/source3/modules/vfs_scannedonly.c
index b76bef41b4..ab5a7f4e6c 100644
--- a/source3/modules/vfs_scannedonly.c
+++ b/source3/modules/vfs_scannedonly.c
@@ -476,13 +476,12 @@ static bool scannedonly_allow_access(vfs_handle_struct * handle,
flush_sendbuffer(handle);
while (retval != 0 /*&& errno == ENOENT */
&& i < recheck_tries) {
- struct timespec req = { 0, recheck_time * 10000 };
DEBUG(SCANNEDONLY_DEBUG,
("scannedonly_allow_access, wait (try=%d "
"(max %d), %d ms) for %s\n",
i, recheck_tries,
recheck_time, cache_smb_fname->base_name));
- nanosleep(&req, NULL);
+ smb_msleep(recheck_time);
retval = SMB_VFS_NEXT_STAT(handle, cache_smb_fname);
i++;
}