[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 Myasnikov |
Subject: |
Re: [Bug-tar] segmentation fault in 1.15.91-20060523 with incremental backups creation |
Date: |
Mon, 29 May 2006 14:50:26 +0400 |
Thanks, that worked for me.
В Птн, 26/05/2006 в 23:25 +0300, Sergey Poznyakoff пишет:
> 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
>
--
Regards,
Sergey