[dovecot-cvs] dovecot-lda/src/libsieve script.c,1.3,1.4
cras at dovecot.org
cras at dovecot.org
Sat Oct 15 16:31:28 EEST 2005
Update of /var/lib/cvs/dovecot-lda/src/libsieve
In directory talvi:/tmp/cvs-serv25793
Modified Files:
script.c
Log Message:
Fixes
Index: script.c
===================================================================
RCS file: /var/lib/cvs/dovecot-lda/src/libsieve/script.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- script.c 14 Oct 2005 20:21:47 -0000 1.3
+++ script.c 15 Oct 2005 13:31:26 -0000 1.4
@@ -418,12 +418,14 @@
fd = open(fname, O_RDONLY);
if (fd == -1) {
- i_error("IOERROR: can not open sieve script %s: %m", fname);
+ if (errno != ENOENT)
+ i_error("IOERROR: can not open sieve script %s: %m", fname);
return SIEVE_FAIL;
}
if (fstat(fd, &sbuf) == -1) {
i_error("IOERROR: fstating sieve script %s: %m", fname);
+ close(fd);
return SIEVE_FAIL;
}
More information about the dovecot-cvs
mailing list