
Untitled
By: a guest on
Jul 20th, 2012 | syntax:
None | size: 1.31 KB | hits: 11 | expires: Never
commit 5a82536068a7d7d4cdb48362721d0b3105c14af9
Author: Richard Lowe <richlowe@richlowe.net>
Date: Mon May 16 07:08:06 2011 +0100
libld: Return FALSE on failure, not S_ERROR which is ~0 (which is true!)
diff --git a/usr/src/cmd/sgs/libld/common/libs.c b/usr/src/cmd/sgs/libld/common/libs.c
index 561e04b..42afdb4 100644
--- a/usr/src/cmd/sgs/libld/common/libs.c
+++ b/usr/src/cmd/sgs/libld/common/libs.c
@@ -602,7 +602,7 @@ ar_extract_bysym(const char *name, int fd, Ar_desc *adp,
/* Construct the member's full pathname */
if ((arpath = ar_member_path(name, arname)) ==
NULL)
- return (S_ERROR);
+ return (FALSE);
/*
* Determine whether the support libraries wish
@@ -769,7 +769,7 @@ ar_extract_all(const char *name, int fd, Ar_desc *adp, Ofl_desc *ofl,
/* Construct the member's full pathname */
if ((arpath = ar_member_path(name, arname)) == NULL)
- return (S_ERROR);
+ return (FALSE);
/*
* Determine whether the support libraries wish to process