Hardcode shell uid to 2000

This commit is contained in:
topjohnwu
2019-09-13 03:14:58 -04:00
parent e31e687602
commit f109038d12
2 changed files with 1 additions and 10 deletions

View File

@@ -17,14 +17,6 @@
#include <logging.h>
#include <utils.h>
unsigned get_shell_uid() {
struct passwd* ppwd = getpwnam("shell");
if (nullptr == ppwd)
return 2000;
return ppwd->pw_uid;
}
int fork_dont_care() {
int pid = xfork();
if (pid) {