summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjulien.pierre.boogz%sun.com <devnull@localhost>2008-09-24 23:53:55 +0000
committerjulien.pierre.boogz%sun.com <devnull@localhost>2008-09-24 23:53:55 +0000
commit005b8e5af37c35083c50f63f5178821c5b8a513b (patch)
treeb973e34142c2d7802821c6d6b1522d20936b5bd8
parentaeb0fcbd7fe999a3244ceaef7cf8d18f2f30874b (diff)
downloadnss-hg-005b8e5af37c35083c50f63f5178821c5b8a513b.tar.gz
Fix for bug 445706. Add error message to nsinstall when symlink creation fails. r=nelson
-rw-r--r--security/coreconf/nsinstall/nsinstall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/security/coreconf/nsinstall/nsinstall.c b/security/coreconf/nsinstall/nsinstall.c
index cf309ece8..f9cf8d166 100644
--- a/security/coreconf/nsinstall/nsinstall.c
+++ b/security/coreconf/nsinstall/nsinstall.c
@@ -359,6 +359,9 @@ retry:
if (!exists && symlink(name, toname) < 0) {
if (errno == EEXIST) {
fprintf(stderr, "symlink creation race: %s\n", toname);
+ fprintf(stderr,
+ "symlink was attempted in working directory %s "
+ "from %s to %s.\n", cwd, name, toname);
goto retry;
}
diagnosePath(toname);