summaryrefslogtreecommitdiffstats
path: root/source/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
commit3e5cada9885059e9926eb6a56d350c4b1b53d245 (patch)
tree307f39340a0c0024dea25e955f94de977126fec2 /source/smbd/server.c
parent559a9bf2bbdeae3e76ba9178779cd3a9537c4e91 (diff)
downloadsamba-3e5cada9885059e9926eb6a56d350c4b1b53d245.tar.gz
samba-3e5cada9885059e9926eb6a56d350c4b1b53d245.tar.xz
samba-3e5cada9885059e9926eb6a56d350c4b1b53d245.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.
Diffstat (limited to 'source/smbd/server.c')
-rw-r--r--source/smbd/server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/server.c b/source/smbd/server.c
index 154f8ed93e2..a236e2e6ecb 100644
--- a/source/smbd/server.c
+++ b/source/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