ObjFW  Check-in [200d385059]

Overview
Comment:OFZIP: Define S_IRWXG / S_IRWXO in OFZIP.h

This makes sure they are always defined and don't need to be defined in
every .m file.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 200d3850593f0684cd41864f52515dadfb5387360ea337256bac288d477b65ee
User & Date: js on 2016-05-28 09:54:42
Other Links: manifest | tags
Context
2016-05-28
11:37
Add a reference to OFStdIOStream_Win32Console check-in: e53a4fd61c user: js tags: trunk
09:54
OFZIP: Define S_IRWXG / S_IRWXO in OFZIP.h check-in: 200d385059 user: js tags: trunk
09:48
OFTarArchiveEntry: Fix type, add an explicit cast check-in: 07d8cd5590 user: js tags: trunk
Changes

Modified utils/ofzip/OFZIP.h from [3f9ff29ba8] to [05231f1f0c].

10
11
12
13
14
15
16


17
18
19
20







21
22
23
24
25
26
27
 *
 * Alternatively, it may be distributed under the terms of the GNU General
 * 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.
 */



#import "OFObject.h"
#import "OFString.h"

#import "Archive.h"








@interface OFZIP: OFObject
{
	int8_t _overwrite;
@public
	int8_t _outputLevel;
	OFString *_archivePath;







>
>




>
>
>
>
>
>
>







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 *
 * Alternatively, it may be distributed under the terms of the GNU General
 * 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 <sys/stat.h>

#import "OFObject.h"
#import "OFString.h"

#import "Archive.h"

#ifndef S_IRWXG
# define S_IRWXG 0
#endif
#ifndef S_IRWXO
# define S_IRWXO 0
#endif

@interface OFZIP: OFObject
{
	int8_t _overwrite;
@public
	int8_t _outputLevel;
	OFString *_archivePath;

Modified utils/ofzip/ZIPArchive.m from [da9497b9c3] to [7aa5aa86b6].

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

#import "ZIPArchive.h"
#import "OFZIP.h"

#import "OFInvalidFormatException.h"
#import "OFOpenItemFailedException.h"

#ifndef S_IRWXG
# define S_IRWXG 0
#endif
#ifndef S_IRWXO
# define S_IRWXO 0
#endif

static OFZIP *app;

static void
setPermissions(OFString *path, OFZIPArchiveEntry *entry)
{
#ifdef OF_HAVE_CHMOD
	if (([entry versionMadeBy] >> 8) ==







<
<
<
<
<
<
<







26
27
28
29
30
31
32







33
34
35
36
37
38
39

#import "ZIPArchive.h"
#import "OFZIP.h"

#import "OFInvalidFormatException.h"
#import "OFOpenItemFailedException.h"








static OFZIP *app;

static void
setPermissions(OFString *path, OFZIPArchiveEntry *entry)
{
#ifdef OF_HAVE_CHMOD
	if (([entry versionMadeBy] >> 8) ==