mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
tab exapand
This commit is contained in:
parent
f1037ae45a
commit
1a71d3bdd7
@ -193,7 +193,7 @@ int os_syslog(int level, char *msg) {
|
|||||||
/**
|
/**
|
||||||
* os-specific chown
|
* os-specific chown
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
extern int os_chown(char *path, char *user) {
|
extern int os_chown(char *path, char *user) {
|
||||||
struct passwd *pw=NULL;
|
struct passwd *pw=NULL;
|
||||||
@ -210,7 +210,7 @@ extern int os_chown(char *path, char *user) {
|
|||||||
|
|
||||||
if(pw) {
|
if(pw) {
|
||||||
if(initgroups(user,pw->pw_gid) != 0 ||
|
if(initgroups(user,pw->pw_gid) != 0 ||
|
||||||
chown(path, pw->pw_uid, pw->pw_gid) != 0) {
|
chown(path, pw->pw_uid, pw->pw_gid) != 0) {
|
||||||
DPRINTF(E_LOG,L_MISC,"Couldn't chown %s, gid=%d, uid=%d\n",
|
DPRINTF(E_LOG,L_MISC,"Couldn't chown %s, gid=%d, uid=%d\n",
|
||||||
user,pw->pw_gid, pw->pw_uid);
|
user,pw->pw_gid, pw->pw_uid);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user