summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-07-16 22:46:06 +0000
committerJeremy Allison <jra@samba.org>1998-07-16 22:46:06 +0000
commitdc44d77c7fd3427b1313e8ee2d7929fb7778148f (patch)
tree59e0e67c1097202efac9a35169ff01c41fc684ee /source3/smbd/server.c
parentf1cd3cb54c6495db2a91c473f91c78d24622d98e (diff)
downloadsamba-dc44d77c7fd3427b1313e8ee2d7929fb7778148f.tar.gz
samba-dc44d77c7fd3427b1313e8ee2d7929fb7778148f.tar.bz2
samba-dc44d77c7fd3427b1313e8ee2d7929fb7778148f.zip
Makefile: Added nttrans.o
includes.h: Added termios.h for AIX. nttrans.c: Working NT SMB calls ! pipes.c: Use strequal instead of strcmp. server.c: Use #defines rather than numbers. smb.h: Updated NT SMB #defines. Jeremy. (This used to be commit 3e5cada9885059e9926eb6a56d350c4b1b53d245)
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 154f8ed93e..a236e2e6ec 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -2153,9 +2153,9 @@ dev = %x, inode = %x\n", old_shares[i].op_type, fname, dev, inode));
if (action)
{
- if (file_existed && !(flags2 & O_TRUNC)) *action = 1;
- if (!file_existed) *action = 2;
- if (file_existed && (flags2 & O_TRUNC)) *action = 3;
+ if (file_existed && !(flags2 & O_TRUNC)) *action = FILE_WAS_OPENED;
+ if (!file_existed) *action = FILE_WAS_CREATED;
+ if (file_existed && (flags2 & O_TRUNC)) *action = FILE_WAS_OVERWRITTEN;
}
/* We must create the share mode entry before truncate as
truncate can fail due to locking and have to close the