]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Since bsdtar already pays for stdio, just use fprintf() here instead of trying to...
authorTim Kientzle <kientzle@gmail.com>
Fri, 12 Jun 2009 05:19:15 +0000 (01:19 -0400)
committerTim Kientzle <kientzle@gmail.com>
Fri, 12 Jun 2009 05:19:15 +0000 (01:19 -0400)
SVN-Revision: 1161

tar/tree.c

index 663f2534683ea2d5c5858826a6df41289a68d79b..e06cb5300fdfc1ad6df29a8fefa4306729868bb3 100644 (file)
@@ -312,10 +312,8 @@ tree_next(struct tree *t)
        /* If we're called again after a fatal error, that's an API
         * violation.  Just crash now. */
        if (t->visit_type == TREE_ERROR_FATAL) {
-               const char *msg = "Unable to continue traversing"
-                   " directory heirarchy after a fatal error.";
-               size_t s = write(2, msg, strlen(msg));
-               (void)s; /* UNUSED */
+               fprintf(stderr, "Unable to continue traversing"
+                   " directory heirarchy after a fatal error.");
                *(int *)0 = 1; /* Deliberate SEGV; NULL pointer dereference. */
                exit(1); /* In case the SEGV didn't work. */
        }