ruby-changes:5115
From: usa <ko1@a...>
Date: Mon, 26 May 2008 16:46:48 +0900 (JST)
Subject: [ruby-changes:5115] Ruby:r16610 (ruby_1_8): * file.c (ntfs_tail): filename which starts with '.' is valid.
usa 2008-05-26 16:46:29 +0900 (Mon, 26 May 2008)
New Revision: 16610
Modified files:
branches/ruby_1_8/ChangeLog
branches/ruby_1_8/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/branches/ruby_1_8/ChangeLog?r1=16610&r2=16609&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/file.c?r1=16610&r2=16609&diff_format=u
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog (revision 16609)
+++ ruby_1_8/ChangeLog (revision 16610)
@@ -1,3 +1,9 @@
+Mon May 26 16:46:19 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 10:21:24 2008 NAKAMURA Usaku <usa@r...>
* marshal.c (dump_ensure, load_ensure): should return values.
Index: ruby_1_8/file.c
===================================================================
--- ruby_1_8/file.c (revision 16609)
+++ ruby_1_8/file.c (revision 16610)
@@ -2474,6 +2474,7 @@
static char *
ntfs_tail(const char *path)
{
+ while (*path == '.') path++;
while (*path && *path != ':') {
if (istrailinggabage(*path)) {
const char *last = path++;
@@ -2784,7 +2785,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/