mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
01cfc8b5fd
commit
19162d268b
1 changed files with 1 additions and 0 deletions
|
@ -5337,6 +5337,7 @@ fileattr_to_unixmode(DWORD attr, const WCHAR *path)
|
|||
}
|
||||
break;
|
||||
}
|
||||
if (!iswalnum(*end)) break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue