diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libalpm/util.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 34f817e1..c3212292 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -118,7 +118,7 @@ int _alpm_makepath_mode(const char *path, mode_t mode)  		/* temporarily mask the end of the path */  		*ptr = '\0'; -		if(mkdir(str, 0755) < 0 && errno != EEXIST) { +		if(mkdir(str, mode) < 0 && errno != EEXIST) {  			ret = 1;  			goto done;  		} @@ -129,7 +129,7 @@ int _alpm_makepath_mode(const char *path, mode_t mode)  	/* end of the string. add the full path. It will already exist when the path  	 * passed in has a trailing slash. */ -	if(mkdir(str, 0755) < 0 && errno != EEXIST) { +	if(mkdir(str, mode) < 0 && errno != EEXIST) {  		ret = 1;  	}  | 
