diff options
author | bubulle <bubulle@alioth.debian.org> | 2009-04-02 15:54:13 +0000 |
---|---|---|
committer | bubulle <bubulle@alioth.debian.org> | 2009-04-02 15:54:13 +0000 |
commit | bf9afdb5c20707c5af271cbdfd98f0bb60180eb1 (patch) | |
tree | f72e29d251d990358e3a080aa35c801104fa54ba /source/libsmb/libsmb_file.c | |
parent | fe09995a9ad2d43523063725462194c7b39a3ce9 (diff) | |
download | samba-bf9afdb5c20707c5af271cbdfd98f0bb60180eb1.tar.gz |
merge upstream 3.3.3
git-svn-id: svn://svn.debian.org/svn/pkg-samba/trunk/samba@2683 fc4039ab-9d04-0410-8cac-899223bdd6b0
Diffstat (limited to 'source/libsmb/libsmb_file.c')
-rw-r--r-- | source/libsmb/libsmb_file.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/libsmb/libsmb_file.c b/source/libsmb/libsmb_file.c index 1bbb47daeb..8741ed6c6e 100644 --- a/source/libsmb/libsmb_file.c +++ b/source/libsmb/libsmb_file.c @@ -118,6 +118,7 @@ SMBC_open_ctx(SMBCCTX *context, if (!cli_resolve_path(frame, "", srv->cli, path, &targetcli, &targetpath)) { d_printf("Could not resolve %s\n", path); + errno = ENOENT; SAFE_FREE(file); TALLOC_FREE(frame); return NULL; @@ -298,6 +299,7 @@ SMBC_read_ctx(SMBCCTX *context, if (!cli_resolve_path(frame, "", file->srv->cli, path, &targetcli, &targetpath)) { d_printf("Could not resolve %s\n", path); + errno = ENOENT; TALLOC_FREE(frame); return -1; } @@ -387,6 +389,7 @@ SMBC_write_ctx(SMBCCTX *context, if (!cli_resolve_path(frame, "", file->srv->cli, path, &targetcli, &targetpath)) { d_printf("Could not resolve %s\n", path); + errno = ENOENT; TALLOC_FREE(frame); return -1; } @@ -462,6 +465,7 @@ SMBC_close_ctx(SMBCCTX *context, if (!cli_resolve_path(frame, "", file->srv->cli, path, &targetcli, &targetpath)) { d_printf("Could not resolve %s\n", path); + errno = ENOENT; TALLOC_FREE(frame); return -1; } @@ -544,6 +548,7 @@ SMBC_getatr(SMBCCTX * context, if (!cli_resolve_path(frame, "", srv->cli, fixedpath, &targetcli, &targetpath)) { d_printf("Couldn't resolve %s\n", path); + errno = ENOENT; TALLOC_FREE(frame); return False; } @@ -756,6 +761,7 @@ SMBC_lseek_ctx(SMBCCTX *context, if (!cli_resolve_path(frame, "", file->srv->cli, path, &targetcli, &targetpath)) { d_printf("Could not resolve %s\n", path); + errno = ENOENT; TALLOC_FREE(frame); return -1; } @@ -847,6 +853,7 @@ SMBC_ftruncate_ctx(SMBCCTX *context, if (!cli_resolve_path(frame, "", file->srv->cli, path, &targetcli, &targetpath)) { d_printf("Could not resolve %s\n", path); + errno = ENOENT; TALLOC_FREE(frame); return -1; } |