| From 6aef666a2911c15b31efeed08d89fe9997d89e04 Mon Sep 17 00:00:00 2001 |
| From: Alex Kiernan <alex.kiernan@gmail.com> |
| Date: Sat, 31 Dec 2022 11:11:14 +0000 |
| Subject: [PATCH] lib/repo-checkout: Add ALLPERMS for musl |
| |
| ALLPERMS is glibc specific, add a definition for musl. |
| |
| Upstream-Status: Submitted [https://github.com/ostreedev/ostree/pull/2797] |
| Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> |
| --- |
| src/libostree/ostree-core-private.h | 5 +++++ |
| 1 file changed, 5 insertions(+) |
| |
| diff --git a/src/libostree/ostree-core-private.h b/src/libostree/ostree-core-private.h |
| index 2bd2f9848718..48b2b8ab307f 100644 |
| --- 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. |
| */ |
| -- |
| 2.39.0 |
| |