dovecot-1.1: FreeBSD NFS workarounds: We called fchown() with ra...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 13 10:07:14 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/b318b25ee92c
changeset: 7660:b318b25ee92c
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jun 13 10:00:42 2008 +0300
description:
FreeBSD NFS workarounds: We called fchown() with random UID. It shouldn't
have really mattered though, because the call failed always anyway.

diffstat:

1 file changed, 2 insertions(+)
src/lib/nfs-workarounds.c |    2 ++

diffs (12 lines):

diff -r 5e5721c49d3d -r b318b25ee92c src/lib/nfs-workarounds.c
--- a/src/lib/nfs-workarounds.c	Fri Jun 13 04:39:49 2008 +0300
+++ b/src/lib/nfs-workarounds.c	Fri Jun 13 10:00:42 2008 +0300
@@ -195,6 +195,8 @@ static bool nfs_flush_fchown_uid(const c
 		return TRUE;
 	}
 	uid = st.st_uid;
+#else
+	uid = (uid_t)-1;
 #endif
 	if (fchown(fd, uid, (gid_t)-1) < 0) {
 		if (errno == ESTALE)


More information about the dovecot-cvs mailing list