From e715030bc228067aefa5a654d8afecb037804872 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 13 Jun 2008 10:00:42 +0300 Subject: [PATCH] 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 --- src/lib/nfs-workarounds.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.47.3