blackbox icon indicating copy to clipboard operation
blackbox copied to clipboard

blackbox_cat cannot be run on the same file more than one simultaneously.

Open rk295 opened this issue 9 years ago • 1 comments

Because blackbox_cat decrypts the encrypted file to the unencrypted filename an issue is hit if you run cat on the same encrypted file more than once at a time.

It would be far nicer to either decrypt to a temporary filename, or to not have blackbox_cat stage the unencrypted file to disk at all.

r

rk295 avatar Mar 07 '16 09:03 rk295

I'm seeing the same issue. It means the following command fails silently:

blackbox_cat myfile.gpg > myfile

Subsequent runs of blackbox_cat myfile.gpg, without stdout redirection, also fail due to the existing empty myfile file.

What's more, the command returns 0 which suggests that it succeeded, instead of a non-zero exit status to indicate that an error has occurred.

I wasted a lot time trying to figure out why I couldn't decrypt a file, thinking there was something wrong with my setup only to find it was caused by this bug.

dderby avatar Jul 09 '19 18:07 dderby