diff options
author | Jim Meyering <meyering@redhat.com> | 2007-11-14 23:34:19 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2007-11-14 23:34:56 +0100 |
commit | 9c59b53d8be9c260d83838db2ac62dd7495a6bf4 (patch) | |
tree | 6513867822b8e6c0d96f9bdd272fa351bbab4c40 /src | |
parent | 92490afb6d347a0bc79f63cfc966e1f388779c33 (diff) | |
download | coreutils-9c59b53d8be9c260d83838db2ac62dd7495a6bf4.tar.xz |
src/install.c (setdefaultfilecon): Stub-out the entire function.
Diffstat (limited to 'src')
-rw-r--r-- | src/install.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/install.c b/src/install.c index 450370e6c..8e4875844 100644 --- a/src/install.c +++ b/src/install.c @@ -197,6 +197,7 @@ cp_option_init (struct cp_options *x) x->src_info = NULL; } +#ifdef ENABLE_WHEN_MATCHPATHCON_IS_MORE_EFFICIENT /* Modify file context to match the specified policy. If an error occurs the file will remain with the default directory context. */ @@ -213,7 +214,6 @@ setdefaultfilecon (char const *file) if (lstat (file, &st) != 0) return; -#ifdef ENABLE_WHEN_MATCHPATHCON_IS_MORE_EFFICIENT if (IS_ABSOLUTE_FILE_NAME (file)) { /* Calling matchpathcon_init_prefix (NULL, "/first_component/") @@ -255,7 +255,6 @@ setdefaultfilecon (char const *file) freecon (scontext); return; } -#endif if (lsetfilecon (file, scontext) < 0 && errno != ENOTSUP) error (0, errno, @@ -265,6 +264,13 @@ setdefaultfilecon (char const *file) freecon (scontext); return; } +#else +static void +setdefaultfilecon (char const *file) +{ + (void) file; +} +#endif /* FILE is the last operand of this command. Return true if FILE is a directory. But report an error there is a problem accessing FILE, |