aboutsummaryrefslogtreecommitdiffstats
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 a32a76dfad..435b623e3c 100644
--- a/file.c
+++ b/file.c
@@ -3970,7 +3970,7 @@ path_check_1(path)
#ifdef S_ISVTX
&& !(st.st_mode & S_ISVTX)
#endif
- ) {
+ && !access(p0, W_OK)) {
rb_warn("Insecure world writable dir %s, mode 0%o", p0, st.st_mode);
if (p) *p = '/';
return 0;