summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 84eb47f500..18e2735d5e 100644
--- a/file.c
+++ b/file.c
@@ -2653,7 +2653,7 @@ path_check_1(path)
#endif
if (stat(p0, &st) == 0 && S_ISDIR(st.st_mode) && (st.st_mode & S_IWOTH)
#ifdef S_ISVTX
- && (!p || !(st.st_mode & S_ISVTX))
+ && !(st.st_mode & S_ISVTX)
#endif
) {
rb_warn("Insecure world writable dir %s, mode 0%o", p0, st.st_mode);