summaryrefslogtreecommitdiffstats
path: root/source3/smbd/dosmode.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-05 01:43:50 +0000
committerJeremy Allison <jra@samba.org>2002-03-05 01:43:50 +0000
commit5d1db25abd340c2c689f913788911b3a2f411b38 (patch)
treede889c9a0fa3d7d102a13717ce39baf15c0d61e7 /source3/smbd/dosmode.c
parent308b222ffd4705d8f4ff53fbb76fc7c1db29bd27 (diff)
downloadsamba-5d1db25abd340c2c689f913788911b3a2f411b38.tar.gz
samba-5d1db25abd340c2c689f913788911b3a2f411b38.tar.xz
samba-5d1db25abd340c2c689f913788911b3a2f411b38.zip
Mask off the aDIR on setfileinfo.
Jeremy. (This used to be commit d9cb1bf20ac8a739102b03d9a70e34fe5cb2f0f7)
Diffstat (limited to 'source3/smbd/dosmode.c')
-rw-r--r--source3/smbd/dosmode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index 6750649effd..dcffe3aa90a 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -195,6 +195,8 @@ int file_chmod(connection_struct *conn,char *fname,int dosmode,SMB_STRUCT_STAT *
if (S_ISDIR(st->st_mode))
dosmode |= aDIR;
+ else
+ dosmode &= ~aDIR;
if (dos_mode(conn,fname,st) == dosmode)
return(0);