Differences From Artifact [9bf42c8f55]:
- File
src/OFFileManager.h
— part of check-in
[4ebeb7e3a2]
at
2017-06-03 12:46:40
on branch trunk
— Make of_(l)stat() private to OFFileManager
Everything else should just use OFFileManager. (user: js, size: 8363) [annotate] [blame] [check-ins using]
To Artifact [7f908e12d5]:
- File src/OFFileManager.h — part of check-in [4175b93242] at 2017-06-03 14:37:19 on branch trunk — OFFileManager: Mask modes to ensure safe modes (user: js, size: 8781) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
137 138 139 140 141 142 143 144 145 146 147 148 | * @return The last status change time of the specified item */ - (OFDate *)statusChangeTimeOfItemAtPath: (OFString *)path; #ifdef OF_HAVE_CHMOD /*! * @brief Returns the permissions of the specified item. * * @param path The path to the item whose permissions should be returned * * @return The permissions of the specified item */ | > > > > | > > > > | | 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | * @return The last status change time of the specified item */ - (OFDate *)statusChangeTimeOfItemAtPath: (OFString *)path; #ifdef OF_HAVE_CHMOD /*! * @brief Returns the permissions of the specified item. * * This returns only the permissions, meaning read, write and execute for * owner, user and group, along with the sticky, setuid and setgid bit. In * other words, only bits that match the mask 07777. * * @param path The path to the item whose permissions should be returned * * @return The permissions of the specified item */ - (uint16_t)permissionsOfItemAtPath: (OFString *)path; /*! * @brief Changes the permissions of an item. * * This only changes the permissions, meaning read, write and execute for * owner, user and group. For security reasons, it ignores all other bits. In * other words, the permissions are masked with 0777. * * This method only changes the read-only flag on Windows. * * @param path The path to the item whose permissions should be changed * @param permissions The new permissions for the item */ - (void)changePermissionsOfItemAtPath: (OFString *)path permissions: (uint16_t)permissions; #endif #ifdef OF_HAVE_CHOWN /*! * @brief Get the owner and group of the specified item. * * @param owner A pointer to an `OFString *` to store the owner, or nil |
︙ | ︙ |