summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2011-08-31 10:19:18 +0200
committerMichael Adam <obnox@samba.org>2011-09-07 19:50:05 +0200
commit9c0252446fe97c037c9af9b8b0bea5f5b86d45e8 (patch)
treefca8c5ecaf031151da1fd6949189e38439ef09a2 /source3/lib
parent14876e65eab7bc0b4b00782cbd936e46bd3f3d0d (diff)
downloadsamba-9c0252446fe97c037c9af9b8b0bea5f5b86d45e8.tar.gz
samba-9c0252446fe97c037c9af9b8b0bea5f5b86d45e8.tar.bz2
samba-9c0252446fe97c037c9af9b8b0bea5f5b86d45e8.zip
s3: let g_lock_unlock() return more specific status codes on failure
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/g_lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c
index bed3ec1e45..308e5cfa2d 100644
--- 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;
}