diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-26 07:46:29 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-26 07:46:29 +0000 |
| commit | bae65bdc339aa7b848ddffb2153e52db91a41769 (patch) | |
| tree | 567def778b15635649fa9fd0ecd2addc260290a5 | |
| parent | a7670a41473410f0881b24817eec5de589258efc (diff) | |
* file.c (ntfs_tail): filename which starts with '.' is valid.
* file.c (file_expand_path): cygwin symlink support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | file.c | 3 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Mon May 26 16:46:19 2008 NAKAMURA Usaku <usa@ruby-lang.org> + + * file.c (ntfs_tail): filename which starts with '.' is valid. + + * file.c (file_expand_path): cygwin symlink support. + Mon May 26 10:21:24 2008 NAKAMURA Usaku <usa@ruby-lang.org> * marshal.c (dump_ensure, load_ensure): should return values. @@ -2474,6 +2474,7 @@ rb_path_end(path) static char * ntfs_tail(const char *path) { + while (*path == '.') path++; while (*path && *path != ':') { if (istrailinggabage(*path)) { const char *last = path++; @@ -2784,7 +2785,7 @@ file_expand_path(fname, dname, result) #ifdef __CYGWIN__ if (lnk_added && len > 4 && strcasecmp(wfd.cFileName + len - 4, ".lnk") == 0) { - len -= 4; + wfd.cFileName[len -= 4] = '\0'; } #endif if (!p) p = buf; |
