summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-25 01:35:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:44 -0500
commit7f57dc61cbf2f421ad9af82164ca0e03c72c5949 (patch)
tree55e1794727bd1c3996f23960a3c930d08da36a2d /source3/lib
parentefd32bf37183c5c797cec0da37cd347a4a1bfbb2 (diff)
downloadsamba-7f57dc61cbf2f421ad9af82164ca0e03c72c5949.tar.gz
samba-7f57dc61cbf2f421ad9af82164ca0e03c72c5949.tar.bz2
samba-7f57dc61cbf2f421ad9af82164ca0e03c72c5949.zip
r14703: Clarify the return codes for the POSIX locking case. This
was confusing. Jeremy. (This used to be commit bc1a605a39e58a7dbdcd4d132345e957e3ed9d5e)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 121beeecc0..45be357be4 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1873,7 +1873,7 @@ BOOL fcntl_lock(int fd, int op, SMB_OFF_T offset, SMB_OFF_T count, int type)
if (ret == -1 && errno != 0)
DEBUG(3,("fcntl_lock: fcntl lock gave errno %d (%s)\n",errno,strerror(errno)));
- /* a lock query */
+ /* a lock query - return True if this region is locked, False if not locked. */
if (op == SMB_F_GETLK) {
if ((ret != -1) &&
(lock.l_type != F_UNLCK) &&