diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-07 22:08:42 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-07 22:08:42 +0000 |
commit | 8c6c6e955b4a73b8a2cac8c0d277bc109b329908 (patch) | |
tree | ad6dfaea9873084f50c69e53f69fca0f22b68b8e /selinux/matchpathcon.c | |
parent | 710694f0e5bae17ceba8c6f2694b856d6eab1c63 (diff) | |
download | busybox-w32-8c6c6e955b4a73b8a2cac8c0d277bc109b329908.tar.gz busybox-w32-8c6c6e955b4a73b8a2cac8c0d277bc109b329908.tar.bz2 busybox-w32-8c6c6e955b4a73b8a2cac8c0d277bc109b329908.zip |
selinux fixes by KaiGai Kohei <kaigai@kaigai.gr.jp>
Diffstat (limited to 'selinux/matchpathcon.c')
-rw-r--r-- | selinux/matchpathcon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/selinux/matchpathcon.c b/selinux/matchpathcon.c index 4fa95b0ef..c9ebbd795 100644 --- a/selinux/matchpathcon.c +++ b/selinux/matchpathcon.c | |||
@@ -29,6 +29,7 @@ static int print_matchpathcon(char *path, int noprint) | |||
29 | #define OPT_PREFIX (1<<3) /* -p */ | 29 | #define OPT_PREFIX (1<<3) /* -p */ |
30 | #define OPT_VERIFY (1<<4) /* -V */ | 30 | #define OPT_VERIFY (1<<4) /* -V */ |
31 | 31 | ||
32 | int matchpathcon_main(int argc, char **argv); | ||
32 | int matchpathcon_main(int argc, char **argv) | 33 | int matchpathcon_main(int argc, char **argv) |
33 | { | 34 | { |
34 | int error = 0; | 35 | int error = 0; |
@@ -41,7 +42,7 @@ int matchpathcon_main(int argc, char **argv) | |||
41 | argv += optind; | 42 | argv += optind; |
42 | 43 | ||
43 | if (opts & OPT_NOT_TRANS) { | 44 | if (opts & OPT_NOT_TRANS) { |
44 | set_matchpathcon_flags(NOTRANS); | 45 | set_matchpathcon_flags(MATCHPATHCON_NOTRANS); |
45 | } | 46 | } |
46 | if (opts & OPT_FCONTEXT) { | 47 | if (opts & OPT_FCONTEXT) { |
47 | if (matchpathcon_init(fcontext)) | 48 | if (matchpathcon_init(fcontext)) |
@@ -57,7 +58,7 @@ int matchpathcon_main(int argc, char **argv) | |||
57 | int rc; | 58 | int rc; |
58 | 59 | ||
59 | if (!(opts & OPT_VERIFY)) { | 60 | if (!(opts & OPT_VERIFY)) { |
60 | error += print_matchpathcon(path, opt & OPT_NOT_PRINT); | 61 | error += print_matchpathcon(path, opts & OPT_NOT_PRINT); |
61 | continue; | 62 | continue; |
62 | } | 63 | } |
63 | 64 | ||