diff options
author | wtc%netscape.com <devnull@localhost> | 2003-03-22 07:52:25 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2003-03-22 07:52:25 +0000 |
commit | ae7c96ca0120c934b5330c649a5a9f8e51f21e8a (patch) | |
tree | 74b1c7d9b37f0ca78979e3354f4e31c6c9c00e75 | |
parent | ca958f9a2cc2db88024625c033ef04a59a782d91 (diff) | |
download | nss-hg-ae7c96ca0120c934b5330c649a5a9f8e51f21e8a.tar.gz |
An experimental change for debugging bug 195127: on the 64-bit AIX
tinderbox the dist/${OBJDIR}/lib/libsoftokn3.chk symlink sometimes does
not get created.
-rw-r--r-- | security/nss/cmd/shlibsign/shlibsign.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/nss/cmd/shlibsign/shlibsign.c b/security/nss/cmd/shlibsign/shlibsign.c index 566c91214..e737603c2 100644 --- a/security/nss/cmd/shlibsign/shlibsign.c +++ b/security/nss/cmd/shlibsign/shlibsign.c @@ -55,6 +55,7 @@ #include "pk11pqg.h" #ifdef USES_LINKS +#include <errno.h> #include <unistd.h> #include <sys/param.h> #include <sys/types.h> @@ -393,9 +394,8 @@ main (int argc, char **argv) #ifdef USES_LINKS if (link_file) { - (void)unlink(link_file); ret = symlink(output_file, link_file); - if (ret < 0) { + if (ret < 0 && errno != EEXIST) { perror(link_file); goto loser; } |