git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14876e6
)
s3: let g_lock_unlock() return more specific status codes on failure
author
Gregor Beck
<gbeck@sernet.de>
Wed, 31 Aug 2011 08:19:18 +0000
(10:19 +0200)
committer
Michael Adam
<obnox@samba.org>
Wed, 7 Sep 2011 17:50:05 +0000
(19:50 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
source3/lib/g_lock.c
patch
|
blob
|
history
diff --git
a/source3/lib/g_lock.c
b/source3/lib/g_lock.c
index bed3ec1e4586baa1bb2b5f68e52651f00a9228cc..308e5cfa2d07c8d59510d1fc05bee7958c02fa3c 100644
(file)
--- a/
source3/lib/g_lock.c
+++ b/
source3/lib/g_lock.c
@@
-523,7
+523,7
@@
static NTSTATUS g_lock_force_unlock(struct g_lock_ctx *ctx, const char *name,
if (!g_lock_parse(talloc_tos(), rec->value, &num_locks, &locks)) {
DEBUG(10, ("g_lock_parse for %s failed\n", name));
- status = NT_STATUS_
INTERNAL_ERROR
;
+ status = NT_STATUS_
FILE_INVALID
;
goto done;
}
@@
-535,7
+535,7
@@
static NTSTATUS g_lock_force_unlock(struct g_lock_ctx *ctx, const char *name,
if (i == num_locks) {
DEBUG(10, ("g_lock_force_unlock: Lock not found\n"));
- status = NT_STATUS_
INTERNAL_ERROR
;
+ status = NT_STATUS_
NOT_FOUND
;
goto done;
}