diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-29 23:33:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-29 23:33:21 +0000 |
commit | a99de8466396ba4d056c126040dbf19ca5af20ff (patch) | |
tree | e50abe002122eabe64b9a040847eafb2920b5247 /file.c | |
parent | 7ae7ac4abab04f4351ae84f63f81b61a41843aff (diff) |
* file.c (file_expand_path): should check if could find user.
[ruby-core:31538]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2865,7 +2865,9 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result) buf = p + 1; p += s-b; } - rb_home_dir(buf, result); + if (NIL_P(rb_home_dir(buf, result))) { + rb_raise(rb_eArgError, "can't find user %s", buf); + } BUFINIT(); p = pend; } |