mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-21 08:56:52 -05:00
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:
parent
7ba8d5c307
commit
d45d5a1470
1 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue