trivial fix in setfiles. spotted by Yuichi Nakamura <ynakam@hitachisoft.jp>
authorDenis Vlasenko <vda.linux@googlemail.com>
Fri, 28 Sep 2007 11:37:38 +0000 (11:37 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Fri, 28 Sep 2007 11:37:38 +0000 (11:37 -0000)
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';