Reserve pathnames starting "." (i.e. dotfiles in the root directory) for
package metadata, so don't extract them.
There are no current uses of these pathnames
while ((fn = tarstream->next_file_name ()).size ())
{
std::string canonicalfn = prefixPath + fn;
+
+ // pathnames starting "." (i.e. dotfiles in the root directory) are
+ // reserved for package metadata. Don't extract them.
+ if (fn[0] == '.')
+ {
+ tarstream->skip_file ();
+ continue;
+ }
+
Progress.SetText3 (canonicalfn.c_str ());
Log (LOG_BABBLE) << "Installing file " << prefixURL << prefixPath
<< fn << endLog;