ruby-changes:5114
From: usa <ko1@a...>
Date: Mon, 26 May 2008 16:46:10 +0900 (JST)
Subject: [ruby-changes:5114] Ruby:r16609 (trunk): * file.c (ntfs_tail): filename which starts with '.' is valid.
usa 2008-05-26 16:45:49 +0900 (Mon, 26 May 2008) New Revision: 16609 Modified files: trunk/ChangeLog trunk/file.c Log: * file.c (ntfs_tail): filename which starts with '.' is valid. * file.c (file_expand_path): cygwin symlink support. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/file.c?r1=16609&r2=16608&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16609&r2=16608&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 16608) +++ ChangeLog (revision 16609) @@ -1,3 +1,9 @@ +Mon May 26 16:41:35 2008 NAKAMURA Usaku <usa@r...> + + * file.c (ntfs_tail): filename which starts with '.' is valid. + + * file.c (file_expand_path): cygwin symlink support. + Mon May 26 07:15:52 2008 Nobuyoshi Nakada <nobu@r...> * vm_dump.c (rb_vm_bugreport): rb_make_backtrace has no arguments. Index: file.c =================================================================== --- file.c (revision 16608) +++ file.c (revision 16609) @@ -2555,6 +2555,7 @@ static char * ntfs_tail(const char *path) { + while (*path == '.') path++; while (*path && *path != ':') { if (istrailinggabage(*path)) { const char *last = path++; @@ -2869,7 +2870,7 @@ #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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/