diff options
author | Jim Meyering <meyering@redhat.com> | 2008-06-02 21:17:57 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-06-02 21:34:40 +0200 |
commit | 0647f3eb5aeaa783ce21ddee268367d2ba7248df (patch) | |
tree | 2bf46a5a1f19d69d2d4265256d7f8387ecbde60f /src | |
parent | 77b1bfc85cdf4ec01094ee31c8c85e2a83dea466 (diff) | |
download | coreutils-0647f3eb5aeaa783ce21ddee268367d2ba7248df.tar.xz |
accommodate older SELinux which lacks matchpathcon_init_prefix
* m4/jm-macros.m4: Check for matchpathcon_init_prefix.
* src/install.c [!HAVE_MATCHPATHCON_INIT_PREFIX]
(matchpathcon_init_prefix): Define away.
* gl/lib/se-selinux.in.h (matchpathcon_init_prefix): Define.
Reported by Ilya N. Golubev in
<http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13686>.
Diffstat (limited to 'src')
-rw-r--r-- | src/install.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/install.c b/src/install.c index 1d902d6ee..decdd7d36 100644 --- a/src/install.c +++ b/src/install.c @@ -66,6 +66,10 @@ static bool use_default_selinux_context = true; # define lchown(name, uid, gid) chown (name, uid, gid) #endif +#if ! HAVE_MATCHPATHCON_INIT_PREFIX +# define matchpathcon_init_prefix(a, p) /* empty */ +#endif + /* Initial number of entries in each hash table entry's table of inodes. */ #define INITIAL_HASH_MODULE 100 |