Fix permission of utmp

Also remove other redundant or seemingly unneeded permission settings

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka committed 2008-06-02 17:28:31 -03:00
1 parent ec10fecd8d
commit 36043c04f9
1 file changed
+1 -2
+1 -2
View File
@@ -281,8 +281,6 @@ int main()
chardev("/dev/ptmx", 0666, 5, 2);
chardev("/dev/null", 0666, 1, 3);
chardev("/dev/mem", 0640, 1, 1);
chmod("/dev/null", 0667);
chmod("/dev/mem", 0640);
chardev("/dev/tty0", 0660, 4, 0);
chardev("/dev/input/mice", 0660, 13, 63);
chardev("/dev/input/event0", 0660, 13, 64);
@@ -326,6 +324,7 @@ int main()
touch("/var/run/utmp");
chown("/var/run/utmp", 0, getgroup("utmp"));
chmod("/var/run/utmp", 0664);
#ifdef RUNLEVEL
memset(&entry, 0, sizeof(struct utmp));