diff options
author | Volker Lendecke <vl@samba.org> | 2011-07-03 20:53:55 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-07-06 08:35:27 +0200 |
commit | 26782fbbf3a7885746aa17be259607dd2d418347 (patch) | |
tree | c2bccfc28bf124b7b983f167fa156a590a448eb0 /source3/libsmb/libsmb_stat.c | |
parent | c019302e65051f214c5ea2ef908aa0ef79c8b12e (diff) | |
download | samba-26782fbbf3a7885746aa17be259607dd2d418347.tar.gz |
s3: make cli_resolve_path return NTSTATUS
This looks larger than it is. No parameters needed changing.
Diffstat (limited to 'source3/libsmb/libsmb_stat.c')
-rw-r--r-- | source3/libsmb/libsmb_stat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/libsmb/libsmb_stat.c b/source3/libsmb/libsmb_stat.c index b579a5f5c1d..c40db4a8d9d 100644 --- a/source3/libsmb/libsmb_stat.c +++ b/source3/libsmb/libsmb_stat.c @@ -215,6 +215,7 @@ SMBC_fstat_ctx(SMBCCTX *context, struct cli_state *targetcli = NULL; SMB_INO_T ino = 0; TALLOC_CTX *frame = talloc_stackframe(); + NTSTATUS status; if (!context || !context->internal->initialized) { errno = EINVAL; @@ -250,9 +251,10 @@ SMBC_fstat_ctx(SMBCCTX *context, } /*d_printf(">>>fstat: resolving %s\n", path);*/ - if (!cli_resolve_path(frame, "", context->internal->auth_info, - file->srv->cli, path, - &targetcli, &targetpath)) { + status = cli_resolve_path(frame, "", context->internal->auth_info, + file->srv->cli, path, + &targetcli, &targetpath); + if (!NT_STATUS_IS_OK(status)) { d_printf("Could not resolve %s\n", path); errno = ENOENT; TALLOC_FREE(frame); |