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_dir.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_dir.c')
-rw-r--r-- | source/libsmb/libsmb_dir.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/libsmb/libsmb_dir.c b/source/libsmb/libsmb_dir.c index 89782ce2a1..8846abb9f6 100644 --- a/source/libsmb/libsmb_dir.c +++ b/source/libsmb/libsmb_dir.c @@ -1169,7 +1169,8 @@ SMBC_mkdir_ctx(SMBCCTX *context, if (!cli_resolve_path(frame, "", srv->cli, path, &targetcli, &targetpath)) { d_printf("Could not resolve %s\n", path); - TALLOC_FREE(frame); + errno = ENOENT; + TALLOC_FREE(frame); return -1; } /*d_printf(">>>mkdir: resolved path as %s\n", targetpath);*/ @@ -1276,6 +1277,7 @@ SMBC_rmdir_ctx(SMBCCTX *context, if (!cli_resolve_path(frame, "", srv->cli, path, &targetcli, &targetpath)) { d_printf("Could not resolve %s\n", path); + errno = ENOENT; TALLOC_FREE(frame); return -1; } @@ -1558,6 +1560,7 @@ SMBC_chmod_ctx(SMBCCTX *context, if (!cli_resolve_path(frame, "", srv->cli, path, &targetcli, &targetpath)) { d_printf("Could not resolve %s\n", path); + errno = ENOENT; TALLOC_FREE(frame); return -1; } @@ -1749,6 +1752,7 @@ SMBC_unlink_ctx(SMBCCTX *context, if (!cli_resolve_path(frame, "", srv->cli, path, &targetcli, &targetpath)) { d_printf("Could not resolve %s\n", path); + errno = ENOENT; TALLOC_FREE(frame); return -1; } @@ -1921,6 +1925,7 @@ SMBC_rename_ctx(SMBCCTX *ocontext, if (!cli_resolve_path(frame, "", srv->cli, path1, &targetcli1, &targetpath1)) { d_printf("Could not resolve %s\n", path1); + errno = ENOENT; TALLOC_FREE(frame); return -1; } @@ -1936,6 +1941,7 @@ SMBC_rename_ctx(SMBCCTX *ocontext, if (!cli_resolve_path(frame, "", srv->cli, path2, &targetcli2, &targetpath2)) { d_printf("Could not resolve %s\n", path2); + errno = ENOENT; TALLOC_FREE(frame); return -1; } |