bug-tar
[Top][All Lists]
Advanced

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

prefer local files to network connections


From: Karl Berry
Subject: prefer local files to network connections
Date: Tue, 30 Jan 2024 10:49:57 -0700

I suggest that tar check if a file exists before trying to make a
network connection. This would eliminate the need for --force-local in
(I expect) most cases. As in:

$ touch foo:bar
$ tar xf foo:bar
tar: Cannot connect to foo: resolve failed

whereas I'd prefer/expect the usual error:
tar: This does not look like a tar archive


Also, since the whole idea of tar making network connections is highly
non-traditional, I also suggest making an environment variable that
turns off the network stuff completely.  TAR_NO_NETWORK or some
such. Since --force-local eliminates the possibility of using
traditional no-dash options, an alias does not suffice. It is not
desirable to make wrapper scripts for something as basic as tar.  Just
an idea/wish ... --thanks, karl.



reply via email to

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