Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ideonaudio authored Mar 21, 2024
1 parent 7db5bfc commit 3018152
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,7 @@ static bool drop_privileges(sds username, uid_t startup_uid) {
return false;
}
}
//check if not root
if (getuid() == 0) {
MYMPD_LOG_ERROR(NULL, "myMPD should not be run with root privileges");
return false;
}

return true;
}

Expand Down

0 comments on commit 3018152

Please sign in to comment.