Release: gpg (GnuPG) 1.2.6
Environment
Linux, Fedora Core 3
Description
If you encrypt a ton of files at once with gpg --encrypt-files $LONG_FILE_LIST you will get a "too many open files" error.
This makes me think the file handles aren't being closed properly during processing
How To Repeat
- Run this in a large directory. Change "KEY" first. #!/bin/bash KEY=foo@example.com for FILE in find . do
- Make sure its a file, not a directory if [ -f $FILE ]; then
- Encrypt the new file with all the keys echo will encrypt $FILE ... ENCRYPTS="$ENCRYPTS $FILE"
- Add the file to the list of files to commit echo "$FILE.asc \\" >> commit.sh COMMITS="true" fi done
- Make sure its a file, not a directory if [ -f $FILE ]; then
- Do the encrypt echo gpg -a -r $KEY --encrypt-files $ENCRYPTS echo -n "Encrypting..." gpg -a $KEYS --encrypt-files $ENCRYPTS
Fix
Unknown
Release Note
gpg 1.2.6 is old and not maintained. Please update to 1.4.1. IIRC, we have fixed this bug.
Fixed in CVS. Fix will go into 1.4.2.