Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 1 | From 6aef666a2911c15b31efeed08d89fe9997d89e04 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alex Kiernan <alex.kiernan@gmail.com> |
| 3 | Date: Sat, 31 Dec 2022 11:11:14 +0000 |
| 4 | Subject: [PATCH] lib/repo-checkout: Add ALLPERMS for musl |
| 5 | |
| 6 | ALLPERMS is glibc specific, add a definition for musl. |
| 7 | |
| 8 | Upstream-Status: Submitted [https://github.com/ostreedev/ostree/pull/2797] |
| 9 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> |
| 10 | --- |
| 11 | src/libostree/ostree-core-private.h | 5 +++++ |
| 12 | 1 file changed, 5 insertions(+) |
| 13 | |
| 14 | diff --git a/src/libostree/ostree-core-private.h b/src/libostree/ostree-core-private.h |
| 15 | index 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 | -- |
| 31 | 2.39.0 |
| 32 | |