summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-30 03:11:44 +0000
committerJeremy Allison <jra@samba.org>2001-06-30 03:11:44 +0000
commit064b4904f9695a766acc0d87a630e18a59e5c540 (patch)
tree03feb3b6bccb247207ee77c617c15f38bdcbeb6f /source3/locking
parent6db4e7612070b8df8d126b596cb6665f0a582db0 (diff)
downloadsamba-064b4904f9695a766acc0d87a630e18a59e5c540.tar.gz
samba-064b4904f9695a766acc0d87a630e18a59e5c540.tar.bz2
samba-064b4904f9695a766acc0d87a630e18a59e5c540.zip
Ensure we return correct error on trying to unlock a region not locked.
Jeremy. (This used to be commit 015a077acc49e59179dc10256fd32166ee4623e2)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 68c3c5b653..a75388081e 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -168,7 +168,7 @@ BOOL do_unlock(files_struct *fsp,connection_struct *conn,
if (!OPEN_FSP(fsp) || !fsp->can_lock || (fsp->conn != conn)) {
*eclass = ERRDOS;
- *ecode = ERRlock;
+ *ecode = ERRbadfid;
return False;
}
@@ -187,7 +187,7 @@ BOOL do_unlock(files_struct *fsp,connection_struct *conn,
if (!ok) {
DEBUG(10,("do_unlock: returning ERRlock.\n" ));
*eclass = ERRDOS;
- *ecode = ERRlock;
+ *ecode = ERRnotlocked;
return False;
}