summaryrefslogtreecommitdiff
path: root/selinux
diff options
context:
space:
mode:
authorDenis Vlasenko2007-09-28 11:37:38 +0000
committerDenis Vlasenko2007-09-28 11:37:38 +0000
commita0ad43b80b4a70a243b17ec464a194cf8369a940 (patch)
treebb518eec6589c3a1a0699a19509f8a020a3383d7 /selinux
parenta7bc9ac8f8a398fd11d10104a7aa26edd9b2f5a7 (diff)
downloadbusybox-a0ad43b80b4a70a243b17ec464a194cf8369a940.zip
busybox-a0ad43b80b4a70a243b17ec464a194cf8369a940.tar.gz
trivial fix in setfiles. spotted by Yuichi Nakamura <ynakam@hitachisoft.jp>
Diffstat (limited to 'selinux')
-rw-r--r--selinux/setfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/selinux/setfiles.c b/selinux/setfiles.c
index befb68f..0f7996f 100644
--- a/selinux/setfiles.c
+++ b/selinux/setfiles.c
@@ -189,7 +189,7 @@ static int match(const char *name, struct stat *sb, char **con)
file_sep = strrchr(tmp_path, '/');
if (file_sep == tmp_path) {
file_sep++;
- p[0] = '\0';
+ path[0] = '\0';
p = path;
} else if (file_sep) {
*file_sep++ = '\0';