[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] segmentation fault in 1.15.91-20060523 with incremental ba
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] segmentation fault in 1.15.91-20060523 with incremental backups creation |
Date: |
Fri, 26 May 2006 23:25:54 +0300 |
Thank you. Please, apply the following patch.
Index: src/incremen.c
===================================================================
RCS file: /cvsroot/tar/tar/src/incremen.c,v
retrieving revision 1.45
diff -p -u -r1.45 incremen.c
--- src/incremen.c 13 May 2006 08:38:12 -0000 1.45
+++ src/incremen.c 26 May 2006 20:22:38 -0000
@@ -119,6 +119,7 @@ make_directory (const char *name)
size_t namelen = strlen (name);
size_t size = offsetof (struct directory, name) + namelen + 1;
struct directory *directory = xmalloc (size);
+ memset (directory, 0, sizeof (*directory));
strcpy (directory->name, name);
if (ISSLASH (directory->name[namelen-1]))
directory->name[namelen-1] = 0;
Regards,
Sergey