Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5541:7082bef9081e HEAD
Use lstat() instead of stat() to check if temporary file already exists.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 11 Apr 2007 14:19:25 +0300 |
parents | 1216c0ebe492 |
children | 8669dc1e4036 |
files | src/lib/file-dotlock.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/file-dotlock.c Wed Apr 11 14:02:31 2007 +0300 +++ b/src/lib/file-dotlock.c Wed Apr 11 14:19:25 2007 +0300 @@ -281,7 +281,7 @@ str_truncate(path, len); str_append(path, binary_to_hex(randbuf, sizeof(randbuf))); - } while (stat(str_c(path), &st) == 0); + } while (lstat(str_c(path), &st) == 0); if (errno != ENOENT) { i_error("stat(%s) failed: %m", str_c(path));