summaryrefslogtreecommitdiff
path: root/source/smbd/pipes.c
diff options
context:
space:
mode:
authorcvs2svn Import User <samba-bugs@samba.org>1997-10-15 01:38:14 +0000
committercvs2svn Import User <samba-bugs@samba.org>1997-10-15 01:38:14 +0000
commitdc1f10efa87576a0289fa71aaeed015a3675b029 (patch)
treefca7a02192adb888fe6b4d239c5d1fa32d0a08ca /source/smbd/pipes.c
parent332f78bbc945c327069e9c9e29c7137c8cbd5c02 (diff)
parenta173a1495c50b5ad1f6b47710cf4b4a7a2226b46 (diff)
downloadsamba-1.9.17p3.tar.gz
This commit was manufactured by cvs2svn to create tagsamba-1.9.17p3
'release-1-9-17p3'.
Diffstat (limited to 'source/smbd/pipes.c')
-rw-r--r--source/smbd/pipes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/pipes.c b/source/smbd/pipes.c
index a465e911459..2cc6eea506f 100644
--- a/source/smbd/pipes.c
+++ b/source/smbd/pipes.c
@@ -127,7 +127,7 @@ int reply_open_pipe_and_X(char *inbuf,char *outbuf,int length,int bufsize)
unixmode = unix_mode(cnum,smb_attr);
open_file_shared(fnum,cnum,fname,smb_mode,smb_ofun,unixmode,
- 0, &rmode,&smb_action);
+ &rmode,&smb_action);
if (!Files[fnum].open)
{
@@ -141,7 +141,7 @@ int reply_open_pipe_and_X(char *inbuf,char *outbuf,int length,int bufsize)
}
if (fstat(Files[fnum].fd_ptr->fd,&sbuf) != 0) {
- close_file(fnum);
+ close_file(fnum, 0);
return(ERROR(ERRDOS,ERRnoaccess));
}
@@ -149,7 +149,7 @@ int reply_open_pipe_and_X(char *inbuf,char *outbuf,int length,int bufsize)
fmode = dos_mode(cnum,fname,&sbuf);
mtime = sbuf.st_mtime;
if (fmode & aDIR) {
- close_file(fnum);
+ close_file(fnum, 0);
return(ERROR(ERRDOS,ERRnoaccess));
}