diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-25 17:35:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-25 17:35:13 +0000 |
commit | 1eafe8b157cdb688a8007c42ed16f81b959a0761 (patch) | |
tree | 13dbff343d5dfcf48309660354dc503cc289ad90 /process.c | |
parent | 56e2c5243fd1caa769f2dff7ebc819af60a2562b (diff) | |
download | ruby-1eafe8b157cdb688a8007c42ed16f81b959a0761.tar.gz |
* process.c (rb_f_exec): get rid of SEGV when exec failed for command
in single string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1232,7 +1232,7 @@ rb_f_exec(argc, argv) e.argv = argv; e.prog = prog ? RSTRING(prog)->ptr : 0; rb_exec(&e); - rb_sys_fail(e.prog); + rb_sys_fail(prog ? e.prog : RSTRING(argv[0])->ptr); return Qnil; /* dummy */ } |