[dovecot-cvs] dovecot/src/lib-index/mbox mbox-lock.c,1.19,1.20
cras at procontrol.fi
cras at procontrol.fi
Sat Dec 21 13:51:21 EET 2002
- Previous message: [dovecot-cvs] dovecot/src/lib-storage/index index-status.c,1.21,1.22
- Next message: [dovecot-cvs] dovecot/src/lib safe-mkdir.c,NONE,1.1 safe-mkdir.h,NONE,1.1 Makefile.am,1.21,1.22 unlink-directory.c,1.4,1.5 unlink-directory.h,1.1.1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv17508/lib-index/mbox
Modified Files:
mbox-lock.c
Log Message:
Check mbox .lock files with lstat(), not stat(). Just paranoia, O_EXCL
prevented us from overwriting symlink destinations anyway.
Index: mbox-lock.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-lock.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- mbox-lock.c 20 Dec 2002 07:53:52 -0000 1.19
+++ mbox-lock.c 21 Dec 2002 11:51:19 -0000 1.20
@@ -161,7 +161,7 @@
do {
now = time(NULL);
- if (stat(path, &st) == 0) {
+ if (lstat(path, &st) == 0) {
/* see if there's been any changes in mbox */
if (stat(index->mailbox_path, &st) < 0) {
mbox_set_syscall_error(index, "stat()");
@@ -264,7 +264,7 @@
memset(&index->mbox_dotlock_dev, 0, sizeof(index->mbox_dotlock_dev));
index->mbox_dotlock_ino = 0;
- if (stat(path, &st) < 0) {
+ if (lstat(path, &st) < 0) {
if (errno == ENOENT)
return TRUE; /* doesn't exist anymore, ignore */
- Previous message: [dovecot-cvs] dovecot/src/lib-storage/index index-status.c,1.21,1.22
- Next message: [dovecot-cvs] dovecot/src/lib safe-mkdir.c,NONE,1.1 safe-mkdir.h,NONE,1.1 Makefile.am,1.21,1.22 unlink-directory.c,1.4,1.5 unlink-directory.h,1.1.1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list