From d45d5a14704dd211c4f9d381d13c43c25d42f708 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 12 Sep 2005 17:50:16 +0000 Subject: [PATCH] Don't return error if chown() fails Don't take serious even if chown() fails in the creation of direct server. It happens if a user doesn't belong to the group specified in the config. --- src/pcm/pcm_direct.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pcm/pcm_direct.c b/src/pcm/pcm_direct.c index 33ed68a7..1d2252a7 100644 --- a/src/pcm/pcm_direct.c +++ b/src/pcm/pcm_direct.c @@ -198,11 +198,13 @@ static int make_local_socket(const char *filename, int server, mode_t ipc_perm, return result; } if (chown(filename, -1, ipc_gid) < 0) { +#if 0 /* it's not fatal */ int result = -errno; - SYSERR("chmod failed: %s", filename); + SYSERR("chown failed: %s", filename); close(sock); unlink(filename); return result; +#endif } } } else { -- 2.47.1