Hi!

I was writing a script to upload the old user's .sieve files to the sieve 
server.

I noticed that the sieve_put_file_withdest function from 
Cyrus::SIEVE::managesieve leaves one file handle open on each call. Hence I can 
call it only 1021 times before it fails. I attached a small perl script to show 
the error.

strace outputs:
open("/tmp/sieve_fh_bug", O_RDONLY)     = 1022
...
open("/tmp/sieve_fh_bug", O_RDONLY)     = 1023
...
open("/tmp/sieve_fh_bug", O_RDONLY)     = -1 EMFILE (Too many open files)

Greetings,
Jörg Ludwig

Attachment: sieve_fh_bug
Description: Perl program

_______________________________________________
Pkg-Cyrus-imapd-Debian-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-cyrus-imapd-debian-devel

Reply via email to