projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad96b8a
)
lib/repo-checkout: Add ALLPERMS for musl
author
Alex Kiernan
<alex.kiernan@gmail.com>
Sat, 31 Dec 2022 11:11:14 +0000
(11:11 +0000)
committer
Alex Kiernan
<alex.kiernan@gmail.com>
Sat, 31 Dec 2022 11:11:14 +0000
(11:11 +0000)
ALLPERMS is glibc specific, add a definition for musl.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
src/libostree/ostree-core-private.h
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-core-private.h
b/src/libostree/ostree-core-private.h
index 2bd2f9848718981a0d672345c6f19a005f006a38..48b2b8ab307fbcc09ec04e5ee9180cd7897f26cf 100644
(file)
--- a/
src/libostree/ostree-core-private.h
+++ b/
src/libostree/ostree-core-private.h
@@
-34,6
+34,11
@@
G_BEGIN_DECLS
#define DEFAULT_DIRECTORY_MODE 0775
#define DEFAULT_REGFILE_MODE 0660
+/* This exists in glibc's sys/stat.h, but not on musl */
+#ifndef ALLPERMS
+#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
+#endif
+
/* This file contains private implementation data format definitions
* read by multiple implementation .c files.
*/