1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-01-05 04:41:21 +00:00
parent 7ada9b8b5a
commit 76f0202393
26 changed files with 191 additions and 182 deletions

5
ruby.c
View file

@ -392,7 +392,10 @@ proc_options(argcp, argvp)
s = argv[1];
argc--,argv++;
}
if (*s && chdir(s) < 0) {
if (!s || !*s) {
rb_fatal("Can't chdir");
}
if (chdir(s) < 0) {
rb_fatal("Can't chdir to %s", s);
}
break;