From: Denis Vlasenko Date: Fri, 28 Sep 2007 11:37:38 +0000 (-0000) Subject: trivial fix in setfiles. spotted by Yuichi Nakamura X-Git-Tag: 1_8_0~126 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a0ad43b80b4a70a243b17ec464a194cf8369a940;p=oweals%2Fbusybox.git trivial fix in setfiles. spotted by Yuichi Nakamura --- diff --git a/selinux/setfiles.c b/selinux/setfiles.c index befb68ff6..0f7996fa6 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';