From: Timo Sirainen Date: Fri, 13 Jun 2008 07:00:42 +0000 (+0300) Subject: FreeBSD NFS workarounds: We called fchown() with random UID. It shouldn't X-Git-Tag: 1.2.alpha1~301 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e715030bc228067aefa5a654d8afecb037804872;p=thirdparty%2Fdovecot%2Fcore.git FreeBSD NFS workarounds: We called fchown() with random UID. It shouldn't have really mattered though, because the call failed always anyway. --HG-- branch : HEAD --- diff --git a/src/lib/nfs-workarounds.c b/src/lib/nfs-workarounds.c index 53f4afe007..75cf7646a1 100644 --- a/src/lib/nfs-workarounds.c +++ b/src/lib/nfs-workarounds.c @@ -195,6 +195,8 @@ static bool nfs_flush_fchown_uid(const char *path, int fd) return TRUE; } uid = st.st_uid; +#else + uid = (uid_t)-1; #endif if (fchown(fd, uid, (gid_t)-1) < 0) { if (errno == ESTALE)