[3/5] setfiles: Musl compatibility for GLOB_BRACE and GLOB_TILDE
diff mbox

Message ID 20180517051117.48454-4-jason@perfinion.com
State Not Applicable
Headers show

Commit Message

Jason Zaman May 17, 2018, 5:11 a.m. UTC
From: Luis Ressel <aranea@aixah.de>

musl doesn't implement GLOB_BRACE and GLOB_TILDE, so simply don't use
them there. This only affects "setfiles -f", which I don't expect many
people use, and it's undocumented anyway that it expands globs.

Signed-off-by: Luis Ressel <aranea@aixah.de>
Signed-off-by: Jason Zaman <jason@perfinion.com>
 policycoreutils/setfiles/restore.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff mbox

diff --git a/policycoreutils/setfiles/restore.c b/policycoreutils/setfiles/restore.c
index 50d192a2..9dea5656 100644
--- a/policycoreutils/setfiles/restore.c
+++ b/policycoreutils/setfiles/restore.c
@@ -6,6 +6,14 @@ 
 #include "restore.h"
 #include <glob.h>
+#ifndef GLOB_BRACE
+#define GLOB_BRACE 0
+#ifndef GLOB_TILDE
+#define GLOB_TILDE 0
 char **exclude_list;
 int exclude_count;