[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
1.13.25 segfault on -g
From: |
mk |
Subject: |
1.13.25 segfault on -g |
Date: |
Fri, 26 Apr 2002 14:16:58 +0200 (MESZ) |
Hi,
1.13.25 throws a segmentation fault in incremen.c when an incremental
backup is attempted and the user has no access rights for a subdirectory in
the list (seen on Linux with glibc-2.2.2).
The following simple change fixes it, but there is probably a more
elegant solution.
Martin
diff -ruw tar-1.13.25.orig/src/incremen.c tar-1.13.25/src/incremen.c
--- tar-1.13.25.orig/src/incremen.c Fri Apr 26 14:10:32 2002
+++ tar-1.13.25/src/incremen.c Fri Apr 26 13:59:53 2002
@@ -202,7 +202,7 @@
accumulator = new_accumulator ();
- if (children != NO_CHILDREN)
+ if (children != NO_CHILDREN && dirp !=NULL)
for (entry = dirp;
(entrylen = strlen (entry)) != 0;
entry += entrylen + 1)
--
Dr. Martin Kroeker, daveg GmbH Darmstadt CAD/CAM/CAQ address@hidden
Precision Powered by Penguins
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 1.13.25 segfault on -g,
mk <=