GnuPG UNC path on windows problem

Werner Koch wk at gnupg.org
Wed Oct 10 12:25:59 CEST 2007


On Wed, 10 Oct 2007 07:20, stormrider01 at gmail.com said:

> gpg --homedir c:\gnupg ---batch --trust-model always --output
> \\server\backups\archive1.7z.gpg -e -r user
> \\server\backups\archive1.7z
>
> And I'm getting this error:
>
> gpg: can't open `\\\\server\\backups\\archive1.7z': No such file or directory
> gpg: \\\\\\server\\backups\\archive1.7z: encryption failed: file open error
>
> I've checked and the file (archive1.7z) isn't in use. Any ideas what's going on?

I am not sure whether UNC works at all.  Would need to test this.
However you can overcome the problem easily:

 gpg --homedir c:\gnupg ---batch --trust-model always -e -r user
     <\\server\backups\archive1.7z >\\server\backups\archive1.7z.gpg

This works because gpg won't see any file name but operates on the data
received on stdin (connect to the input file) and sends the output to
stdout (connected to the output file).


Salam-Shalom,

   Werner


-- 
Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.




More information about the Gnupg-users mailing list