diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-28 14:23:33 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-28 14:23:33 +0000 |
commit | 5eaf7e581661ea92c0468eb239ece86b27187ade (patch) | |
tree | 92794226e7672713346ac7cdbbfca1472b19f252 /file.c | |
parent | daa1423dea418737e2a0b371921c8d02df07f1f6 (diff) | |
download | ruby-5eaf7e581661ea92c0468eb239ece86b27187ade.tar.gz |
* gc.c (gc_mark): explicitly check mark recursion levels, instead
of unreliable stack length.
* file.c (path_check_1): honor sticky bits always.
[ruby-talk:86273]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |