mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:17:09 +08:00
Don't drop priveliges for OLED displays.
This commit is contained in:
@@ -191,7 +191,7 @@ int CMMDVMHost::run()
|
|||||||
::close(STDIN_FILENO);
|
::close(STDIN_FILENO);
|
||||||
::close(STDOUT_FILENO);
|
::close(STDOUT_FILENO);
|
||||||
::close(STDERR_FILENO);
|
::close(STDERR_FILENO);
|
||||||
#if !defined(HD44780)
|
#if !defined(HD44780) && !defined(OLED)
|
||||||
//If we are currently root...
|
//If we are currently root...
|
||||||
if (getuid() == 0) {
|
if (getuid() == 0) {
|
||||||
struct passwd* user = ::getpwnam("mmdvm");
|
struct passwd* user = ::getpwnam("mmdvm");
|
||||||
|
|||||||
Reference in New Issue
Block a user