RTL.BaseUnix, Example fpdup: wrong if claus
Original Reporter info from Mantis: gvs
-
Reporter name:
Original Reporter info from Mantis: gvs
- Reporter name:
Description:
http://freepascal.org/docs-html/rtl/baseunix/fpdup.html version Feb 02 2013
This fp* calls report "invalid handle" = -1 so the if clause is wrong:
if fpdup (output,f)<>0 then
it should be (as in dup2 example):
if fpdup (output,f)=-1 then
Additionally both examples (dup, dup2) have the same name "Example31".
Mantis conversion info:
- Mantis ID: 25060
- Build: Feb 02 2013
- Fixed in version: 3.0.0
- Fixed in revision: 1027 (#ed475b29)