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 befb68ff6b5c62786e9ff8c6d8523e645d4c323b..0f7996fa615c4503c79349c616970bdc28fafbe1 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';