From: Jon Turney <jon.turney@dronecode.org.uk>
To: cygwin-apps@cygwin.com
Cc: Jon Turney <jon.turney@dronecode.org.uk>
Subject: [PATCH setup 10/10] Reserve paths starting "." for package metadata
Date: Tue, 02 Aug 2016 15:31:00 -0000 [thread overview]
Message-ID: <20160802153037.125216-11-jon.turney@dronecode.org.uk> (raw)
In-Reply-To: <20160802153037.125216-1-jon.turney@dronecode.org.uk>
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
---
install.cc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/install.cc b/install.cc
index f54acdc..8aad3a5 100644
--- a/install.cc
+++ b/install.cc
@@ -471,6 +471,15 @@ Installer::installOne (packagemeta &pkgm, const packageversion &ver,
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;
--
2.8.3
next prev parent reply other threads:[~2016-08-02 15:31 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-02 15:31 [PATCH setup 00/10] Various setup patches Jon Turney
2016-08-02 15:31 ` [PATCH setup 06/10] Remove obsolete installed_from member from packagemeta Jon Turney
2016-08-02 15:31 ` [PATCH setup 04/10] Downgrade "Running preremove script" logging to debug Jon Turney
2016-08-02 15:31 ` [PATCH setup 08/10] Track if a package was installed by user, or as a dependency Jon Turney
2016-08-03 10:49 ` Jon Turney
2016-08-02 15:31 ` [PATCH setup 09/10] Add an additional filter view, showing packages which were user picked Jon Turney
2016-08-02 15:31 ` [PATCH setup 07/10] Remove unused fn member from cygpackage Jon Turney
2016-08-02 15:31 ` [PATCH setup 01/10] Remove stray execute permissions Jon Turney
2016-08-02 15:31 ` [PATCH setup 03/10] Add lex and yacc generated files to .gitignore Jon Turney
2016-08-02 15:31 ` [PATCH setup 02/10] Prevent libtool warning that a getopt++ shared library cannot be built Jon Turney
2016-08-02 15:31 ` [PATCH setup 05/10] Properly report progress in PrereqChecker::isMet Jon Turney
2016-08-02 15:31 ` Jon Turney [this message]
2016-08-03 7:10 ` [PATCH setup 00/10] Various setup patches Achim Gratz
2016-08-03 8:35 ` Corinna Vinschen
2016-08-03 9:52 ` Achim Gratz
2016-08-03 17:40 ` Corinna Vinschen
2016-08-03 18:28 ` Achim Gratz
2016-08-03 18:43 ` Corinna Vinschen
2016-08-03 19:52 ` Achim Gratz
2016-08-04 11:40 ` Corinna Vinschen
2016-08-04 17:57 ` Achim Gratz
2016-08-04 18:00 ` Corinna Vinschen
2016-08-04 19:26 ` Achim Gratz
2016-08-03 17:30 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160802153037.125216-11-jon.turney@dronecode.org.uk \
--to=jon.turney@dronecode.org.uk \
--cc=cygwin-apps@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).