diff options
author | Jeremy Allison <jra@samba.org> | 2002-03-05 01:43:50 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-03-05 01:43:50 +0000 |
commit | 5d1db25abd340c2c689f913788911b3a2f411b38 (patch) | |
tree | de889c9a0fa3d7d102a13717ce39baf15c0d61e7 /source3/smbd/trans2.c | |
parent | 308b222ffd4705d8f4ff53fbb76fc7c1db29bd27 (diff) | |
download | samba-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/trans2.c')
-rw-r--r-- | source3/smbd/trans2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 501057830ad..d08e3419f97 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -2225,6 +2225,11 @@ static int call_trans2setfilepathinfo(connection_struct *conn, DEBUG(6,("size: %.0f ", (double)size)); DEBUG(6,("mode: %x\n" , mode)); + if (S_ISDIR(sbuf.st_mode)) + mode |= aDIR; + else + mode &= ~aDIR; + if(!((info_level == SMB_SET_FILE_END_OF_FILE_INFO) || (info_level == SMB_SET_FILE_ALLOCATION_INFO) || (info_level == SMB_FILE_ALLOCATION_INFORMATION) || |