trivial fix in setfiles. spotted by Yuichi Nakamura <ynakam@hitachisoft.jp>
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Fri, 28 Sep 2007 11:37:38 +0000 (11:37 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Fri, 28 Sep 2007 11:37:38 +0000 (11:37 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@20082 69ca8d6d-28ef-0310-b511-8ec308f3f277

selinux/setfiles.c

index befb68f..0f7996f 100644 (file)
@@ -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';