paxutils-forum
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU tar 1.13.19 may crash on --listed-incremental


From: Alexandre Oliva
Subject: GNU tar 1.13.19 may crash on --listed-incremental
Date: 20 May 2001 06:16:02 -0300
User-agent: Gnus/5.090003 (Oort Gnus v0.03) XEmacs/21.4 (Academic Rigor)

When searching a directory tree to create a listed incremental, if GNU
tar 1.13.19 doesn't have permission to enter a directory, it may
crash, because savedir_error() isn't fatal.  This patch fixes the
problem.

--- src/incremen.c~     Sat Jan 13 03:59:29 2001
+++ src/incremen.c      Sun May 20 05:51:37 2001
@@ -183,7 +183,10 @@
     enum children children;
 
     if (! dirp)
-      savedir_error (path);
+      {
+       savedir_error (path);
+       return 0;
+      }
     errno = 0;
 
     name_buffer_size = strlen (path) + NAME_FIELD_SIZE;
-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  address@hidden, redhat.com}
CS PhD student at IC-Unicamp        address@hidden, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

reply via email to

[Prev in Thread] Current Thread [Next in Thread]