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.
This commit is contained in:
Takashi Iwai 2005-09-12 17:50:16 +00:00
parent 7ba8d5c307
commit d45d5a1470

View file

@ -198,11 +198,13 @@ static int make_local_socket(const char *filename, int server, mode_t ipc_perm,
return result; return result;
} }
if (chown(filename, -1, ipc_gid) < 0) { if (chown(filename, -1, ipc_gid) < 0) {
#if 0 /* it's not fatal */
int result = -errno; int result = -errno;
SYSERR("chmod failed: %s", filename); SYSERR("chown failed: %s", filename);
close(sock); close(sock);
unlink(filename); unlink(filename);
return result; return result;
#endif
} }
} }
} else { } else {