bug: erroronous ret-value for system() call in 2.6-kernel - Mailing list pgsql-bugs

From Niklas Andersson
Subject bug: erroronous ret-value for system() call in 2.6-kernel
Date
Msg-id 2470.85.137.51.174.1107764933.squirrel@webmail.cport.se
Whole thread Raw
Responses Re: bug: erroronous ret-value for system() call in 2.6-kernel
List pgsql-bugs
Hi!

 Had a curious problem with postgresql 7.0.3. Could create a DB if I run
kernel 2.4 but not in 2.6. Had a look in
/src/backend/commands/dbcommands.c and finaly found out that you use an
errorounous ret value from the system()-call. You checked for: if
(system(buf) != 0)

.. I changed those lines to if (system(buf) != -1 ) and it worked. (Thanks
to "man 3 system"

regards
Niklas Andersson

pgsql-bugs by date:

Previous
From: "Vladimir"
Date:
Subject: BUG #1462: install bug
Next
From: Dirk.Lutzebaeck@t-online.de (Dirk Lutzebaeck)
Date:
Subject: Re: BUG #1453: NULLs in UNION query