diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-04 16:03:32 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-04 16:03:32 +0000 |
commit | cfc06af0b770d6638ba131501f9ea5a5c28cec3b (patch) | |
tree | e0a931210905590b8b51bdf7dc749c38c676b404 /source/smbwrapper/wrapped.c | |
parent | c4e450817886b40474cebdfc50c0c16fb4646baf (diff) | |
download | samba-cfc06af0b770d6638ba131501f9ea5a5c28cec3b.tar.gz samba-cfc06af0b770d6638ba131501f9ea5a5c28cec3b.tar.xz samba-cfc06af0b770d6638ba131501f9ea5a5c28cec3b.zip |
drat. We can't include sys/fcntl.h because that gives
conflicts. Instead use "01101" for O_CREAT|O_WRONLY|O_TRUNC.
uggh.
Diffstat (limited to 'source/smbwrapper/wrapped.c')
-rw-r--r-- | source/smbwrapper/wrapped.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/smbwrapper/wrapped.c b/source/smbwrapper/wrapped.c index 8aa3768638d..a6e35563da6 100644 --- a/source/smbwrapper/wrapped.c +++ b/source/smbwrapper/wrapped.c @@ -625,5 +625,6 @@ __asm__(".globl _write; _write = write"); int creat(const char *path, mode_t mode) { - return open(path, O_WRONLY | O_CREAT | O_TRUNC, mode); + /* drat, including sys/fcntl.h gives conflicts */ + return open(path, 01101, mode); } |