setfiles: Musl compatibility for GLOB_BRACE and GLOB_TILDE

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>
This commit is contained in:
Luis Ressel 2017-11-13 07:41:42 +01:00 committed by Jason Zaman
parent ab0e27003e
commit 310470235a

View File

@ -6,6 +6,14 @@
#include "restore.h"
#include <glob.h>
#ifndef GLOB_BRACE
#define GLOB_BRACE 0
#endif
#ifndef GLOB_TILDE
#define GLOB_TILDE 0
#endif
char **exclude_list;
int exclude_count;