Set owner of /var/run/utmp to root:utmp

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka committed 2008-06-02 17:22:35 -03:00
1 parent ba9c897e83
commit 0fc7654a83
4 files changed
+16

No files matched your search

+2
View File
@@ -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;