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 | d9cb1bf20ac8a739102b03d9a70e34fe5cb2f0f7 (patch) | |
tree | 7ead92050cfa1e96669c684dcdcf75db1ac81aa0 /source/smbd/trans2.c | |
parent | a7fa0733badad66ae610eac5e01569cf264976f3 (diff) | |
download | samba-d9cb1bf20ac8a739102b03d9a70e34fe5cb2f0f7.tar.gz samba-d9cb1bf20ac8a739102b03d9a70e34fe5cb2f0f7.tar.xz samba-d9cb1bf20ac8a739102b03d9a70e34fe5cb2f0f7.zip |
Mask off the aDIR on setfileinfo.
Jeremy.
Diffstat (limited to 'source/smbd/trans2.c')
-rw-r--r-- | source/smbd/trans2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index 501057830ad..d08e3419f97 100644 --- a/source/smbd/trans2.c +++ b/source/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) || |