mirror of
https://github.com/troglobit/finit.git
synced 2026-10-29 12:40:44 +00:00
Set owner of /var/run/utmp to root:utmp
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
ba9c897e83
commit
0fc7654a83
4 files changed
+16
No files matched your search
@@ -325,6 +325,8 @@ int main()
|
||||
}
|
||||
|
||||
touch("/var/run/utmp");
|
||||
chown("/var/run/utmp", 0, getgroup("utmp"));
|
||||
|
||||
#ifdef RUNLEVEL
|
||||
memset(&entry, 0, sizeof(struct utmp));
|
||||
entry.ut_type = RUN_LVL;
|
||||
|
||||
Reference in new issue
Block a user