mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-17 19:54:32 +00:00
restorecond: 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 affects restorecond -u but braces are not used in the example configs. GLOB_TILDE is on the roadmap[1] for musl 1.1.21 so restorecond -u should be fine soon. [1]: https://wiki.musl-libc.org/roadmap.html Signed-off-by: Jason Zaman <jason@perfinion.com>
This commit is contained in:
parent
310470235a
commit
178c552e46
@ -1,11 +1,14 @@
|
||||
/*
|
||||
* Note that the restorecond(8) service build links with these functions.
|
||||
* Therefore any changes here should also be tested against that utility.
|
||||
*/
|
||||
|
||||
#include "restore.h"
|
||||
#include <glob.h>
|
||||
|
||||
#ifndef GLOB_TILDE
|
||||
#define GLOB_TILDE 0
|
||||
#endif
|
||||
|
||||
#ifndef GLOB_BRACE
|
||||
#define GLOB_BRACE 0
|
||||
#endif
|
||||
|
||||
char **exclude_list;
|
||||
int exclude_count;
|
||||
|
||||
|
@ -20,6 +20,14 @@
|
||||
#include "stringslist.h"
|
||||
#include "utmpwatcher.h"
|
||||
|
||||
#ifndef GLOB_TILDE
|
||||
#define GLOB_TILDE 0
|
||||
#endif
|
||||
|
||||
#ifndef GLOB_BRACE
|
||||
#define GLOB_BRACE 0
|
||||
#endif
|
||||
|
||||
/* size of the event structure, not counting name */
|
||||
#define EVENT_SIZE (sizeof (struct inotify_event))
|
||||
/* reasonable guess as to size of 1024 events */
|
||||
|
Loading…
Reference in New Issue
Block a user