summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-20 00:58:23 +0000
committerJeremy Allison <jra@samba.org>2002-03-20 00:58:23 +0000
commit418d5684a2845d914ad1266bb38e68bc7e2de43a (patch)
tree985289cbe70f7d1fb2672693541d2043ee9cd068 /source3/smbd
parent9776d11ad414838ad9c93339e0205d4a0aa8a3db (diff)
downloadsamba-418d5684a2845d914ad1266bb38e68bc7e2de43a.tar.gz
samba-418d5684a2845d914ad1266bb38e68bc7e2de43a.tar.bz2
samba-418d5684a2845d914ad1266bb38e68bc7e2de43a.zip
Ensure we get a real fd when opening for set file allocation.
Jeremy. (This used to be commit 00cabb2346fb11c5568b6c7a038c313ae293a0c2)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 660363a7f1..6aee06cc00 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -2140,7 +2140,7 @@ static int call_trans2setfilepathinfo(connection_struct *conn,
return -1;
}
- new_fsp = open_file_shared(conn, fname, &sbuf,
+ new_fsp = open_file_shared1(conn, fname, &sbuf,FILE_WRITE_DATA,
SET_OPEN_MODE(DOS_OPEN_RDWR),
(FILE_FAIL_IF_NOT_EXIST|FILE_EXISTS_OPEN),
0, 0, &access_mode, &action);