bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] tar-1.20 and filepaths containing "\r"


From: Jan-Benedict Glaw
Subject: Re: [Bug-tar] tar-1.20 and filepaths containing "\r"
Date: Fri, 12 Sep 2008 22:14:06 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

On Fri, 2008-09-12 18:08:38 +0300, Sergey Poznyakoff <address@hidden> wrote:
> Jan-Benedict Glaw <address@hidden> ha escrit:
> 
> > If you strace it, you see that the '\r' decoded to ^M and that's what
> 
> I have misread the initial post then, because I thought that \r *does*
> stand for ^M. If you mean backslash followed by 'r', than you'll have to
> either quote the whole combination or additionally escape the backslash.

GNU tar gets the file name byte-by-byte exactly as it is on-disk or as
it would be returned by readdir(). Shell-escaping was done properly.
Maybe tomorrow, I'll step through the sources again and spot the call
pathes where the problem actually arises.

But to draw the line, it should be enough to properly name the files
to be covered by the backup. I don't think there's anything in the
documentation telling me that uncommon file names need extra care
except proper shell quoting and (in case of leading '-') a separating
"--" or "./" prepended to make it "./-foo" to not look like an option.

MfG, JBG

-- 
      Jan-Benedict Glaw      address@hidden              +49-172-7608481
Signature of:         Alles wird gut! ...und heute wirds schon ein bißchen 
besser.
the second  :

Attachment: signature.asc
Description: Digital signature


reply via email to

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