View | Details | Raw Unified | Return to bug 57052
Collapse All | Expand All

(-)files/patch-am (-1 / +1 lines)
Lines 83-89 Link Here
83
         return 1;               /* root can do it always */
83
         return 1;               /* root can do it always */
84
 #endif
84
 #endif
85
-    sprintf(fname, "/dev/tty%d", vc);
85
-    sprintf(fname, "/dev/tty%d", vc);
86
+    sprintf(fname, "/dev/ttyv%x", vc);
86
+    sprintf(fname, "/dev/ttyv%x", vc - 1);
87
     if ((stat(fname, &sbuf) >= 0) && (getuid() == sbuf.st_uid)) {
87
     if ((stat(fname, &sbuf) >= 0) && (getuid() == sbuf.st_uid)) {
88
         return 1;
88
         return 1;
89
     }
89
     }

Return to bug 57052