From bfaff8ed1a3899c9aef7eaa2421d3d6467343ea1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 5 Oct 1998 12:17:01 +0000 Subject: got smbwrapper working on IRIX 6.4. Things got a bit tricky, especially as the headers get the syscall numbers wrong! (This used to be commit a5405f1ab069a3123a819311a87ca84f2c5f0fea) --- source3/smbwrapper/smbw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/smbwrapper/smbw.c') diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c index e7d0106034..97beca9b19 100644 --- a/source3/smbwrapper/smbw.c +++ b/source3/smbwrapper/smbw.c @@ -500,7 +500,7 @@ int smbw_open(const char *fname, int flags, mode_t mode) fstring server, share; pstring path; struct smbw_server *srv=NULL; - int eno, fd = -1; + int eno=0, fd = -1; struct smbw_file *file=NULL; smbw_init(); @@ -529,6 +529,7 @@ int smbw_open(const char *fname, int flags, mode_t mode) } if (fd == -1) { /* it might be a directory. Maybe we should use chkpath? */ + eno = smbw_error(&srv->cli); fd = smbw_dir_open(fname); smbw_busy--; return fd; @@ -1072,7 +1073,7 @@ a wrapper for lseek() off_t smbw_lseek(int fd, off_t offset, int whence) { struct smbw_file *file; - uint32 size; + size_t size; smbw_busy++; -- cgit