summaryrefslogtreecommitdiffstats
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
commit7396d7ddc72ea4d83d86b2c4565920bdd836ec3a (patch)
treee1c935d37d99730442d1f8923ea05f39e55026af /file.c
parent2aeef954d5dbc4c2095f768336754d6116dea244 (diff)
downloadruby-7396d7ddc72ea4d83d86b2c4565920bdd836ec3a.tar.gz
ruby-7396d7ddc72ea4d83d86b2c4565920bdd836ec3a.tar.xz
ruby-7396d7ddc72ea4d83d86b2c4565920bdd836ec3a.zip
* 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: http://svn.ruby-lang.org/repos/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 36c5ed876..e2136f2d6 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;