summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-05 20:53:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-05 20:53:31 +0000
commit458673dd8abf2a26f3308873c1d83c6dfa273964 (patch)
treeaffbce44e017b445174642b0d00b18a668dcd41b
parent4464544e052d1dd2632779a66807ad0bd597e216 (diff)
* file.c (rb_path_check): nothing to check under DOSISH.
[ruby-list:35772] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--file.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9304bd91d29..8fdacae5adf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Sep 6 05:48:26 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * file.c (rb_path_check): nothing to check under DOSISH.
+ [ruby-list:35772]
+
Fri Sep 6 05:03:50 2002 Minero Aoki <aamine@loveruby.net>
* gc.c (rb_gc): should mark parser.
diff --git a/file.c b/file.c
index 148ef049254..a32d962df12 100644
--- a/file.c
+++ b/file.c
@@ -2343,6 +2343,7 @@ is_absolute_path(path)
return 0;
}
+#ifndef DOSISH
static int
path_check_1(path)
VALUE path;
@@ -2371,7 +2372,7 @@ path_check_1(path)
&& (!p || !(st.st_mode & S_ISVTX))
#endif
) {
- rb_warn("Unsecure world writeable dir %s , mode 0%o", p0, st.st_mode);
+ rb_warn("Insecure world writable dir %s , mode 0%o", p0, st.st_mode);
if (p) *p = '/';
return 0;
}
@@ -2382,11 +2383,13 @@ path_check_1(path)
*p = '\0';
}
}
+#endif
int
rb_path_check(path)
char *path;
{
+#ifndef DOSISH
char *p0, *p, *pend;
const char sep = PATH_SEP_CHAR;
@@ -2406,6 +2409,7 @@ rb_path_check(path)
p = strchr(p0, sep);
if (!p) p = pend;
}
+#endif
return 1;
}