From: Takashi Iwai Date: Mon, 12 Sep 2005 17:50:16 +0000 (+0000) Subject: Don't return error if chown() fails X-Git-Tag: v1.0.10rc2~12 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=d45d5a14704dd211c4f9d381d13c43c25d42f708;p=alsa-lib.git 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. --- 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 {