summaryrefslogtreecommitdiff
path: root/selinux/matchpathcon.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-02-07 22:08:42 +0000
committerDenis Vlasenko2007-02-07 22:08:42 +0000
commit8c6c6e955b4a73b8a2cac8c0d277bc109b329908 (patch)
treead6dfaea9873084f50c69e53f69fca0f22b68b8e /selinux/matchpathcon.c
parent710694f0e5bae17ceba8c6f2694b856d6eab1c63 (diff)
downloadbusybox-8c6c6e955b4a73b8a2cac8c0d277bc109b329908.zip
busybox-8c6c6e955b4a73b8a2cac8c0d277bc109b329908.tar.gz
selinux fixes by KaiGai Kohei <kaigai@kaigai.gr.jp>
Diffstat (limited to 'selinux/matchpathcon.c')
-rw-r--r--selinux/matchpathcon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/selinux/matchpathcon.c b/selinux/matchpathcon.c
index 4fa95b0..c9ebbd7 100644
--- a/selinux/matchpathcon.c
+++ b/selinux/matchpathcon.c
@@ -29,6 +29,7 @@ static int print_matchpathcon(char *path, int noprint)
#define OPT_PREFIX (1<<3) /* -p */
#define OPT_VERIFY (1<<4) /* -V */
+int matchpathcon_main(int argc, char **argv);
int matchpathcon_main(int argc, char **argv)
{
int error = 0;
@@ -41,7 +42,7 @@ int matchpathcon_main(int argc, char **argv)
argv += optind;
if (opts & OPT_NOT_TRANS) {
- set_matchpathcon_flags(NOTRANS);
+ set_matchpathcon_flags(MATCHPATHCON_NOTRANS);
}
if (opts & OPT_FCONTEXT) {
if (matchpathcon_init(fcontext))
@@ -57,7 +58,7 @@ int matchpathcon_main(int argc, char **argv)
int rc;
if (!(opts & OPT_VERIFY)) {
- error += print_matchpathcon(path, opt & OPT_NOT_PRINT);
+ error += print_matchpathcon(path, opts & OPT_NOT_PRINT);
continue;
}