@@ -12,12 +12,10 @@ * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ -#include - #import "OFException.h" OF_ASSUME_NONNULL_BEGIN /*! @@ -29,11 +27,11 @@ * failed. */ @interface OFChangePermissionsFailedException: OFException { OFString *_path; - mode_t _permissions; + uint16_t _permissions; int _errNo; } /*! * The path of the item. @@ -41,11 +39,11 @@ @property (readonly, nonatomic) OFString *path; /*! * The new permissions for the item. */ -@property (readonly, nonatomic) mode_t permissions; +@property (readonly, nonatomic) uint16_t permissions; /*! * The errno of the error that occurred. */ @property (readonly, nonatomic) int errNo; @@ -59,11 +57,11 @@ * @param permissions The new permissions for the item * @param errNo The errno of the error that occurred * @return A new, autoreleased change permissions failed exception */ + (instancetype)exceptionWithPath: (OFString *)path - permissions: (mode_t)permissions + permissions: (uint16_t)permissions errNo: (int)errNo; - init OF_UNAVAILABLE; /*! @@ -73,10 +71,10 @@ * @param permissions The new permissions for the item * @param errNo The errno of the error that occurred * @return An initialized change permissions failed exception */ - initWithPath: (OFString *)path - permissions: (mode_t)permissions + permissions: (uint16_t)permissions errNo: (int)errNo; @end OF_ASSUME_NONNULL_END