From: Ilya Zakharevich Date: Thu, 5 Nov 1998 02:21:12 +0000 (-0500) Subject: Yet another OS/2 patch X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e96326affd376a1d487cc153399fffe7e116ca34;p=p5sagit%2Fp5-mst-13.2.git Yet another OS/2 patch Message-Id: <199811050721.CAA27998@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@2374 --- diff --git a/os2/Changes b/os2/Changes index dbd721f..f725137 100644 --- a/os2/Changes +++ b/os2/Changes @@ -214,6 +214,8 @@ after 5.005_02: $^E was reset on the second read, and contained ".\r\n" at the end. after 5.005_53: + Would segfault system()ing non-existing program; + AOUT build was hosed; warning-test for getpriority() might lock the system hard on pre-fixpak22 configuration (calling getpriority() on non-existing process triggers a system-wide bug). diff --git a/os2/Makefile.SHs b/os2/Makefile.SHs index 8fd7bfb..c9bf39a 100644 --- a/os2/Makefile.SHs +++ b/os2/Makefile.SHs @@ -18,6 +18,7 @@ $spitshell >>Makefile <= sizeof scrbuf) { - Safefree(scr); - longbuf: - croak("Size of scriptname too big: %d", l); - } - strcpy(scrbuf, scr); - Safefree(scr); - scr = scrbuf; if (scr) { - FILE *file = fopen(scr, "r"); + FILE *file; char *s = 0, *s1; + int l; + l = strlen(scr); + + if (l >= sizeof scrbuf) { + Safefree(scr); + longbuf: + croak("Size of scriptname too big: %d", l); + } + strcpy(scrbuf, scr); + Safefree(scr); + scr = scrbuf; + + file = fopen(scr, "r"); PL_Argv[0] = scr; if (!file) goto panic_file; diff --git a/t/pragma/warn/op b/t/pragma/warn/op index d0886ed..195928c 100644 --- a/t/pragma/warn/op +++ b/t/pragma/warn/op @@ -296,7 +296,7 @@ Useless use of times in void context at - line 13. use warning 'void' ; use Config ; BEGIN { - if ( ! $Config{d_getprior}) { + if ( ! $Config{d_getprior} or $^O eq 'os2') { # Locks before fixpak22 print <