changeset 7860:85f457b9b3ad HEAD

FreeBSD NFS workarounds: We called fchown() with random UID. It shouldn't have really mattered though, because the call failed always anyway.
author Timo Sirainen <tss@iki.fi>
date Fri, 13 Jun 2008 10:00:42 +0300
parents f431c67621ed
children 481fa709dce3
files src/lib/nfs-workarounds.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 		return TRUE;
 	}
 	uid = st.st_uid;
+#else
+	uid = (uid_t)-1;
 #endif
 	if (fchown(fd, uid, (gid_t)-1) < 0) {
 		if (errno == ESTALE)