diff --git a/mozilla/security/nss/cmd/shlibsign/shlibsign.c b/mozilla/security/nss/cmd/shlibsign/shlibsign.c index 586e5c7bb6d..8ae6ce582e1 100644 --- a/mozilla/security/nss/cmd/shlibsign/shlibsign.c +++ b/mozilla/security/nss/cmd/shlibsign/shlibsign.c @@ -34,7 +34,7 @@ /* * Test program for SDR (Secret Decoder Ring) functions. * - * $Id: shlibsign.c,v 1.8 2003-03-22 07:52:25 wtc%netscape.com Exp $ + * $Id: shlibsign.c,v 1.9 2003-03-23 00:16:43 wtc%netscape.com Exp $ */ #ifdef XP_UNIX @@ -55,7 +55,6 @@ #include "pk11pqg.h" #ifdef USES_LINKS -#include #include #include #include @@ -394,8 +393,9 @@ main (int argc, char **argv) #ifdef USES_LINKS if (link_file) { + (void)unlink(link_file); ret = symlink(output_file, link_file); - if (ret < 0 && errno != EEXIST) { + if (ret < 0) { perror(link_file); goto loser; }