summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-18 09:09:25 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-18 09:09:25 +0000
commit63fe6ca5a08c371bac75d5a40ad008b61d99c6b5 (patch)
treee1c935d37d99730442d1f8923ea05f39e55026af /file.c
parentd3a17b1ee02e2828ccaf8171385f45d9383ce6d1 (diff)
* file.c (rb_file_s_dirname): should use skipprefix for UNC path.
pointed out by nobu ([ruby-dev:27744]). fixed: [ruby-core:5076] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 36c5ed876e..e2136f2d64 100644
--- a/file.c
+++ b/file.c
@@ -2689,7 +2689,7 @@ rb_file_s_dirname(klass, fname)
root = skiproot(name);
#ifdef DOSISH_UNC
if (root > name + 1 && isdirsep(*name))
- name = root - 2;
+ root = skipprefix(name = root - 2);
#else
if (root > name + 1)
name = root - 1;