diff options
author | Jeremy Allison <jra@samba.org> | 1998-10-18 22:06:35 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-10-18 22:06:35 +0000 |
commit | b8aec499dc49b1d86d9f44296e07d40232813642 (patch) | |
tree | 014e4b1eaa634570a351bec6e1baad272f37fc07 /source3/smbd/trans2.c | |
parent | 691e2f245c7ac01b027e7300aa7fd2b1ccc90876 (diff) | |
download | samba-b8aec499dc49b1d86d9f44296e07d40232813642.tar.gz samba-b8aec499dc49b1d86d9f44296e07d40232813642.tar.bz2 samba-b8aec499dc49b1d86d9f44296e07d40232813642.zip |
Fixed sys_lseek and seek_file calls so all returns
are *checked* :-).
Jeremy.
(This used to be commit b8b781191dd7d28944d87eec5fa0fbef798e289b)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r-- | source3/smbd/trans2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index f9186115f5..62bfb612e5 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -1253,7 +1253,8 @@ static int call_trans2qfilepathinfo(connection_struct *conn, DEBUG(3,("fstat of fnum %d failed (%s)\n",fsp->fnum, strerror(errno))); return(UNIXERROR(ERRDOS,ERRbadfid)); } - pos = sys_lseek(fsp->fd_ptr->fd,0,SEEK_CUR); + if((pos = sys_lseek(fsp->fd_ptr->fd,0,SEEK_CUR)) == -1) + return(UNIXERROR(ERRDOS,ERRnoaccess)); } else { /* qpathinfo */ info_level = SVAL(params,0); |