public inbox for nncp-devel@lists.cypherpunks.ru
Atom feed
From: Sergey Matveev <stargrave@stargrave•org>
To: nncp-devel@lists.cypherpunks.ru
Subject: Re: nncp-file on directory fails when directory contains symlinks
Date: Tue, 25 Jan 2022 21:36:46 +0300	[thread overview]
Message-ID: <YfBDPjP2OhCwmqwy@stargrave.org> (raw)
In-Reply-To: <878rv3vrwd.fsf@complete.org>

[-- Attachment #1: Type: text/plain, Size: 808 bytes --]

Greetings!

*** John Goerzen [2022-01-25 07:58]:
>I discovered the reason: the presence of even one symlink in a directory
>caused the operation to fail; a file would be left in the tmp directory
>and nothing would be sent.

Thanks for the bug report! Indeed the error variable was shadowed,
so it was not even reported to the user. I also skip any non-regular
file during that pax-archive creation. Only directories and regular
files will be included. If someone wants any other type of files,
keeping permissions, ownership, ACLs, flags, hardlinks, xattrs, etc,
then external tar invocation must be used (that is less a problem now
because of streaming encrypted packets format).

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: CF60 E89A 5923 1E76 E263  6422 AE1A 8109 E498 57EF

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2022-01-25 18:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-25 13:58 nncp-file on directory fails when directory contains symlinks John Goerzen
2022-01-25 18:36 ` Sergey Matveev [this message]