[Libsysio-commit] HEAD: libsysio/src link.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-04-27 16:03:26
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31471 Modified Files: link.c Log Message: From Cray SPR 728648; LINK() IS NOT ALWAYS RETURNING -1 ON ERROR Fix from Kevin Pedretti. Namei failures jumped to the exit point without setting an error/errno appropriately. Index: link.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/link.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -b -B -p -r1.4 -r1.5 --- link.c 14 Feb 2004 19:42:59 -0000 1.4 +++ link.c 27 Apr 2004 16:03:17 -0000 1.5 @@ -96,11 +96,11 @@ error2: P_RELE(new); error1: P_RELE(old); +out: if (err) { errno = -err; err = -1; } -out: return err; } |