src/pulsecore/core-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5610d41482df995baaf510308e07ccbe04c9e18b Author: Bradley Broom <bmbr...@gmail.com> Date: Fri Apr 25 13:00:00 2014 +0300 core-util: Call fchown() only when necessary This reportedly fixes some cases where the home directory is on NFS. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=45656 diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 0d9e354..3e2c615 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -336,7 +336,7 @@ again: uid = getuid(); if (gid == (gid_t) -1) gid = getgid(); - if (fchown(fd, uid, gid) < 0) { + if (((st.st_uid != uid) || (st.st_gid != gid)) && fchown(fd, uid, gid) < 0) { pa_assert_se(pa_close(fd) >= 0); goto fail; } _______________________________________________ pulseaudio-commits mailing list pulseaudio-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/pulseaudio-commits