diff options
-rw-r--r-- | selinux/setfiles.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/selinux/setfiles.c b/selinux/setfiles.c index 42207fcfb..cadec8367 100644 --- a/selinux/setfiles.c +++ b/selinux/setfiles.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | setfiles: based on policycoreutils 2.0.19 | 2 | setfiles: based on policycoreutils 2.0.19 |
3 | policycoreutils was released under GPL 2. | 3 | policycoreutils was released under GPL 2. |
4 | Port to BusyBox by 2007 Yuichi Nakamura <ynakam@hitachisoft.jp> | 4 | Port to BusyBox (c) 2007 by Yuichi Nakamura <ynakam@hitachisoft.jp> |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include "libbb.h" | 7 | #include "libbb.h" |
@@ -182,10 +182,8 @@ static int match(const char *name, struct stat *sb, char **con) | |||
182 | char path[PATH_MAX + 1]; | 182 | char path[PATH_MAX + 1]; |
183 | char *tmp_path = xstrdup(name); | 183 | char *tmp_path = xstrdup(name); |
184 | 184 | ||
185 | if (excludeCtr > 0) { | 185 | if (excludeCtr > 0 && exclude(name)) { |
186 | if (exclude(name)) { | 186 | goto err; |
187 | goto err; | ||
188 | } | ||
189 | } | 187 | } |
190 | ret = lstat(name, sb); | 188 | ret = lstat(name, sb); |
191 | if (ret) { | 189 | if (ret) { |