1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ruby.c (proc_options): -T consumes digits only.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2002-05-22 12:32:15 +00:00
parent f625a17502
commit 730d8f1d32
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Wed May 22 21:26:47 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* ruby.c (proc_options): -T consumes digits only.
Wed May 22 20:18:31 2002 WATANABE Hirofumi <eban@ruby-lang.org> Wed May 22 20:18:31 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* configure.in: need not link vsnprintf.o on MinGW. * configure.in: need not link vsnprintf.o on MinGW.

3
ruby.c
View file

@ -558,10 +558,11 @@ proc_options(argc, argv)
if (*++s) { if (*++s) {
v = scan_oct(s, 2, &numlen); v = scan_oct(s, 2, &numlen);
if (numlen == 0) v = 1; if (numlen == 0) v = 1;
s += numlen;
} }
rb_set_safe_level(v); rb_set_safe_level(v);
} }
break; goto reswitch;
case 'I': case 'I':
forbid_setid("-I"); forbid_setid("-I");