dovecot-1.2: FreeBSD NFS workarounds: We called fchown() with ra...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jun 17 12:36:45 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/85f457b9b3ad
changeset: 7860:85f457b9b3ad
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 f431c67621ed -r 85f457b9b3ad 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