Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 1.31 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. commit 5a82536068a7d7d4cdb48362721d0b3105c14af9
  2. Author: Richard Lowe <richlowe@richlowe.net>
  3. Date:   Mon May 16 07:08:06 2011 +0100
  4.  
  5.     libld: Return FALSE on failure, not S_ERROR which is ~0 (which is true!)
  6.  
  7. diff --git a/usr/src/cmd/sgs/libld/common/libs.c b/usr/src/cmd/sgs/libld/common/libs.c
  8. index 561e04b..42afdb4 100644
  9. --- a/usr/src/cmd/sgs/libld/common/libs.c
  10. +++ b/usr/src/cmd/sgs/libld/common/libs.c
  11. @@ -602,7 +602,7 @@ ar_extract_bysym(const char *name, int fd, Ar_desc *adp,
  12.                                 /* Construct the member's full pathname */
  13.                                 if ((arpath = ar_member_path(name, arname)) ==
  14.                                     NULL)
  15. -                                       return (S_ERROR);
  16. +                                       return (FALSE);
  17.  
  18.                                 /*
  19.                                  * Determine whether the support libraries wish
  20. @@ -769,7 +769,7 @@ ar_extract_all(const char *name, int fd, Ar_desc *adp, Ofl_desc *ofl,
  21.  
  22.                 /* Construct the member's full pathname */
  23.                 if ((arpath = ar_member_path(name, arname)) == NULL)
  24. -                       return (S_ERROR);
  25. +                       return (FALSE);
  26.  
  27.                 /*
  28.                  * Determine whether the support libraries wish to process