summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/smbw.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-05 13:51:19 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-05 13:51:19 +0000
commit36ee52334ba79f059043989a1f1c73b71a48a8c1 (patch)
tree1eee79709840f667613d3a789a153d60db59d90a /source3/smbwrapper/smbw.c
parent4980fcf425ae40db097afe144443e025eba190e7 (diff)
downloadsamba-36ee52334ba79f059043989a1f1c73b71a48a8c1.tar.gz
samba-36ee52334ba79f059043989a1f1c73b71a48a8c1.tar.bz2
samba-36ee52334ba79f059043989a1f1c73b71a48a8c1.zip
- fixed errno return in smbw_open()
- updated README a bit - fixed Linux compilation of utime() (This used to be commit 4bacf32755f8012110797f7aae2b3e1e0e2f537b)
Diffstat (limited to 'source3/smbwrapper/smbw.c')
-rw-r--r--source3/smbwrapper/smbw.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c
index 97beca9b19..33cadc48d9 100644
--- a/source3/smbwrapper/smbw.c
+++ b/source3/smbwrapper/smbw.c
@@ -531,13 +531,10 @@ int smbw_open(const char *fname, int flags, mode_t mode)
/* it might be a directory. Maybe we should use chkpath? */
eno = smbw_error(&srv->cli);
fd = smbw_dir_open(fname);
+ if (fd == -1) errno = eno;
smbw_busy--;
return fd;
}
- if (fd == -1) {
- errno = eno;
- goto failed;
- }
file = (struct smbw_file *)malloc(sizeof(*file));
if (!file) {