bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] segfault getting cwd with --listed-incremental


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] segfault getting cwd with --listed-incremental
Date: Fri, 16 Jul 2010 15:04:15 +0300

Paul Eggert <address@hidden> ha escrit:

> OK, but aren't symlinks an argument for the patch, not an argument
> against it?

I am not sure at all.

> The patched code doesn't take symlinks into account either.  The previous
> version rewrote A/B/../C as A/C, and surely this wasn't safe when B was
> a symlink to some other directory.

That would not be safe if caname had been used as a real directory name
(e.g. by chdir'ing to it), which is not the case.

> Why must normalize_filename_x produce an absolute file name?

It is used to ensure the order of directories in the resulting archive
is the same, whatever their order on the command line and to avoid
dumping the same directory twice, if it was referenced by different
relative names.

Regards,
Sergey



reply via email to

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