aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-01 08:14:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-01 08:14:03 +0000
commit19162d268bba8ae31ab2217d411b0d374ac8c9e9 (patch)
treeb9fc20f4a8e4112f890361c593aee8ae4859d521 /win32
parent01cfc8b5fd1b9d10111f4b1d55c33f6594cdca6e (diff)
downloadruby-19162d268bba8ae31ab2217d411b0d374ac8c9e9.tar.gz
win32.c: suffix should be alnum
* win32/win32.c (fileattr_to_unixmode): built-in executable suffixes are alpha-numeric only, no needs to scan whole path, especially path separators. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index a4706f4ac8..34ad5fedb1 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -5337,6 +5337,7 @@ fileattr_to_unixmode(DWORD attr, const WCHAR *path)
}
break;
}
+ if (!iswalnum(*end)) break;
}
}