Page MenuHome GnuPG

GpgTar: S/MIME decryption fails with input/output error
Open, HighPublic

Description

When decrypting a .p7m file which contains a deep folder structure you get the following error.
(Decrypting the .gpg file for the same folder runs without issues.)

Only the text:

unicode.tar.gz.p7m → Eingabe von C:/Program Files (x86)/GnuPG VS-Desktop/GnuPG//bin/gpgtar.exe --utf8-strings --cms --skip-crypto ...: 
Entschlüsseln fehlgeschlagen: Input/output error.
Eingabefehler: Fehler während der Ausführung von C:/Program Files (x86)/GnuPG VS-Desktop/GnuPG//bin/gpgtar.exe: gpgtar: note: ignoring option --set-filename gpgtar: error creating directory 'unicode_1_/unicode/abcdefghijklmnopqrstuvwxyz 123 öäöß/😁🤞😎❓⁉ abcdefghijklmnopqrstuvwxyz Ä/😎❓⁉ abcdefghijklmnopqrstuvwxyz 1/😎❓⁉ abcdefghijklmnopqrstuvwxyz 2/😎❓⁉ abcdefghijklmnopqrstuvwxyz 3': No such file or directory

On the commandline the following will work:

C:\Users\g10code.WIN-TEST3\Documents>gpgsm -d unicode.tar.gz.p7m > unicode.tar.gz

C:\Users\g10code.WIN-TEST3\Documents>gpgtar -dv --skip-crypto unicode.tar.gz
gpgtar: extracting to 'unicode.tar.gz_3_/'
gpgtar: created   'unicode.tar.gz_3_/unicode/'
gpgtar: created   'unicode.tar.gz_3_/unicode/abcdefghijklmnopqrstuvwxyz 123 öäöß/'
gpgtar: extracted 'unicode.tar.gz_3_/unicode/abcdefghijklmnopqrstuvwxyz 123 öäöß/ein Name mit Léer zeichen und 🐱‍🐉.txt'
[...]

Event Timeline

This was already present in 3.1.26, where the error message was missing the output from gpgtar. So there was an improvement

aheinecke triaged this task as Normal priority.Nov 30 2023, 1:06 PM
aheinecke raised the priority of this task from Normal to High.
aheinecke added a subscriber: aheinecke.

Lets make sure that we look into this for 3.3

For S/MIME archives we still use the old code. gpgtar doesn't even support gpgsm.