[PATCH]:wrong mknod(2) usage ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

it seems to be wrong mknod(2) usage in loader.c

thank you.
diff -u -r1.253 loader.c
--- loader2/loader.c    11 Jul 2007 15:28:23 -0000      1.253
+++ loader2/loader.c    3 Aug 2007 05:48:18 -0000
@@ -238,7 +238,7 @@

     for (n = 9; n > 0; n--) {
        sprintf(dev, "/dev/tty%d", n);
-       mknod(dev, 0600, S_IFCHR | makedev(4, n));
+       mknod(dev, 0600 | S_IFCHR, makedev(4, n));
        fd = open(dev, O_RDWR|O_NOCTTY);
        if (fd >= 0) {
            ioctl(fd, VT_ACTIVATE, n);

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux