diff options
author | Jeremy Allison <jra@samba.org> | 2001-06-30 03:11:44 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-06-30 03:11:44 +0000 |
commit | 015a077acc49e59179dc10256fd32166ee4623e2 (patch) | |
tree | 71f8ed2fb74cc9d2441701e0cd698e7cb8308792 /source/locking | |
parent | 09837044a2aa47a61d635316afa38645855db512 (diff) | |
download | samba-015a077acc49e59179dc10256fd32166ee4623e2.tar.gz samba-015a077acc49e59179dc10256fd32166ee4623e2.tar.xz samba-015a077acc49e59179dc10256fd32166ee4623e2.zip |
Ensure we return correct error on trying to unlock a region not locked.
Jeremy.
Diffstat (limited to 'source/locking')
-rw-r--r-- | source/locking/locking.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c index 68c3c5b6530..a75388081e9 100644 --- a/source/locking/locking.c +++ b/source/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; } |