Changeset 57
- Timestamp:
- Aug 7, 2007, 6:57:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/smbd/dosmode.c
r22 r57 78 78 mode_t dir_mode = 0; /* Mode of the inherit_from directory if 79 79 * inheriting. */ 80 81 80 if (!lp_store_dos_attributes(SNUM(conn)) && IS_DOS_READONLY(dosmode)) { 82 81 result &= ~(S_IWUSR | S_IWGRP | S_IWOTH); … … 155 154 if (ro_opts == MAP_READONLY_YES) { 156 155 /* Original Samba method - map inverse of user "w" bit. */ 156 #ifndef __OS2__ 157 157 if ((sbuf->st_mode & S_IWUSR) == 0) { 158 #else 159 if(os2_isattribute(path,aRONLY)==0) { 160 #endif 158 161 result |= aRONLY; 159 162 } … … 164 167 } 165 168 } /* Else never set the readonly bit. */ 166 169 #ifndef __OS2__ 167 170 if (MAP_ARCHIVE(conn) && ((sbuf->st_mode & S_IXUSR) != 0)) 171 #else 172 if(os2_isattribute(path,aARCH)==0) 173 #endif 168 174 result |= aARCH; 169 175 176 #ifndef __OS2__ 170 177 if (MAP_SYSTEM(conn) && ((sbuf->st_mode & S_IXGRP) != 0)) 178 #else 179 if(os2_isattribute(path,aSYSTEM)==0) 180 #endif 171 181 result |= aSYSTEM; 172 182 183 #ifndef __OS2__ 173 184 if (MAP_HIDDEN(conn) && ((sbuf->st_mode & S_IXOTH) != 0)) 185 #else 186 if(os2_isattribute(path,aHIDDEN)==0) 187 #endif 174 188 result |= aHIDDEN; 175 189
Note:
See TracChangeset
for help on using the changeset viewer.