diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-18 09:09:25 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-18 09:09:25 +0000 |
commit | 7396d7ddc72ea4d83d86b2c4565920bdd836ec3a (patch) | |
tree | e1c935d37d99730442d1f8923ea05f39e55026af /file.c | |
parent | 2aeef954d5dbc4c2095f768336754d6116dea244 (diff) | |
download | ruby-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |