summaryrefslogtreecommitdiffstats
path: root/source/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-13 23:24:46 +0000
committerJeremy Allison <jra@samba.org>2001-04-13 23:24:46 +0000
commit778f1fe203ebfbed9e96a65841aad979cc99a420 (patch)
tree654acec70204d51154448802dce3b677d87ac44f /source/printing
parentc018e5ed4d3a757efdad46e9f64ba5e482834a80 (diff)
downloadsamba-778f1fe203ebfbed9e96a65841aad979cc99a420.tar.gz
samba-778f1fe203ebfbed9e96a65841aad979cc99a420.tar.xz
samba-778f1fe203ebfbed9e96a65841aad979cc99a420.zip
configure:
configure.in: include/config.h.in: include/profile.h: smbd/vfs-wrap.c: smbd/vfs.c: Added fchmod and fchown to VFS (sorry Gerald - but we needed them anyway). smbd/dosmode.c: smbd/files.c: printing/printfsp.c: smbd/close.c: smbd/open.c: Fixed "dos filemode" correctly so there are no race conditions. Forces test of open of file O_WRONLY before allowing fchmod as root. Afterwards, calls standard close function that preserves POSIX locks due to POSIX-me-harder braindamage. :-). Andrew please review this code. Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r--source/printing/printfsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/printing/printfsp.c b/source/printing/printfsp.c
index efb97be9194..6a8e4bea450 100644
--- a/source/printing/printfsp.c
+++ b/source/printing/printfsp.c
@@ -34,7 +34,7 @@ files_struct *print_fsp_open(connection_struct *conn,char *jobname)
int jobid;
SMB_STRUCT_STAT sbuf;
extern struct current_user current_user;
- files_struct *fsp = file_new();
+ files_struct *fsp = file_new(conn);
if(!fsp)
return NULL;