]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
FreeBSD NFS workarounds: We called fchown() with random UID. It shouldn't
authorTimo Sirainen <tss@iki.fi>
Fri, 13 Jun 2008 07:00:42 +0000 (10:00 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 13 Jun 2008 07:00:42 +0000 (10:00 +0300)
have really mattered though, because the call failed always anyway.

--HG--
branch : HEAD

src/lib/nfs-workarounds.c

index 53f4afe0077bfefb7761ffbce2b61013a342b931..75cf7646a1d6c5b93ca95cb0fa3601f64db39959 100644 (file)
@@ -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)