1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* file.c (file_expand_path): revert a part of r22392. it's commit miss.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2010-05-26 11:04:43 +00:00
parent a77351eac0
commit 868eef7873
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Wed May 26 19:55:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* file.c (file_expand_path): revert a part of r22392. it's commit miss.
Wed May 26 12:08:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> Wed May 26 12:08:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* random.c (random_rand): subtraction method of non-numeric can * random.c (random_rand): subtraction method of non-numeric can

2
file.c
View file

@ -3051,7 +3051,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
} }
if (p == skiproot(buf) - 1) p++; if (p == skiproot(buf) - 1) p++;
#if USE_NTFS && defined __WIN32__ #if USE_NTFS
*p = '\0'; *p = '\0';
if ((s = strrdirsep(b = buf)) != 0 && !strpbrk(s, "*?")) { if ((s = strrdirsep(b = buf)) != 0 && !strpbrk(s, "*?")) {
size_t len; size_t len;