blob: 1502f1d4fd5e6f517de9cebe7d8688a8dd11bfc7 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 6aef666a2911c15b31efeed08d89fe9997d89e04 Mon Sep 17 00:00:00 2001
2From: Alex Kiernan <alex.kiernan@gmail.com>
3Date: Sat, 31 Dec 2022 11:11:14 +0000
4Subject: [PATCH] lib/repo-checkout: Add ALLPERMS for musl
5
6ALLPERMS is glibc specific, add a definition for musl.
7
8Upstream-Status: Submitted [https://github.com/ostreedev/ostree/pull/2797]
9Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
10---
11 src/libostree/ostree-core-private.h | 5 +++++
12 1 file changed, 5 insertions(+)
13
14diff --git a/src/libostree/ostree-core-private.h b/src/libostree/ostree-core-private.h
15index 2bd2f9848718..48b2b8ab307f 100644
16--- a/src/libostree/ostree-core-private.h
17+++ b/src/libostree/ostree-core-private.h
18@@ -34,6 +34,11 @@ G_BEGIN_DECLS
19 #define DEFAULT_DIRECTORY_MODE 0775
20 #define DEFAULT_REGFILE_MODE 0660
21
22+/* This exists in glibc's sys/stat.h, but not on musl */
23+#ifndef ALLPERMS
24+#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
25+#endif
26+
27 /* This file contains private implementation data format definitions
28 * read by multiple implementation .c files.
29 */
30--
312.39.0
32