mirror of https://github.com/g4klx/MMDVMHost
Don't drop priveliges for OLED displays.
This commit is contained in:
parent
fdb0da7329
commit
bc5478974f
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue