Commit f109038d authored by topjohnwu's avatar topjohnwu

Hardcode shell uid to 2000

parent e31e6876
......@@ -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) {
......
#pragma once
#define UID_SHELL (get_shell_uid())
#define UID_ROOT 0
#define UID_SHELL 2000
#ifdef __cplusplus
extern "C" {
#endif
unsigned get_shell_uid();
int fork_dont_care();
int fork_no_zombie();
int strend(const char *s1, const char *s2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment