summaryrefslogtreecommitdiffstats
path: root/graphics/svgalib
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-09-01 16:10:29 +0000
committersobomax <sobomax@FreeBSD.org>2000-09-01 16:10:29 +0000
commit6e81899e313153de0880f4d22a55d6ed5350a23a (patch)
tree98b6f8781a30d2c447a165e3eb656ac6d04339a7 /graphics/svgalib
parentb68bb2cfb349835787a0e0d5acbb19ae03fd213d (diff)
downloadFreeBSD-ports-6e81899e313153de0880f4d22a55d6ed5350a23a.zip
FreeBSD-ports-6e81899e313153de0880f4d22a55d6ed5350a23a.tar.gz
Properly name tty (use %x instead of %d to get device name).
Submitted by: Dan Nelson <dnelson@emsphone.com>
Diffstat (limited to 'graphics/svgalib')
-rw-r--r--graphics/svgalib/files/patch-am6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/svgalib/files/patch-am b/graphics/svgalib/files/patch-am
index 86ea29e..4aa37a9 100644
--- a/graphics/svgalib/files/patch-am
+++ b/graphics/svgalib/files/patch-am
@@ -1,5 +1,5 @@
--- src/vga.c.orig Thu Jul 6 19:10:32 2000
-+++ src/vga.c Fri Aug 25 06:32:01 2000
++++ src/vga.c Fri Sep 1 18:30:27 2000
@@ -22,10 +22,10 @@
#include <unistd.h>
#include <stdarg.h>
@@ -83,7 +83,7 @@
return 1; /* root can do it always */
#endif
- sprintf(fname, "/dev/tty%d", vc);
-+ sprintf(fname, "/dev/ttyv%d", vc);
++ sprintf(fname, "/dev/ttyv%x", vc);
if ((stat(fname, &sbuf) >= 0) && (getuid() == sbuf.st_uid)) {
return 1;
}
@@ -101,7 +101,7 @@
if (svgalib_vc <= 0)
goto error;
- sprintf(fname, "/dev/tty%d", svgalib_vc);
-+ sprintf(fname, "/dev/ttyv%d", svgalib_vc - 1);
++ sprintf(fname, "/dev/ttyv%x", svgalib_vc - 1);
close(__svgalib_tty_fd);
/* change our control terminal: */
setpgid(0,getppid());
OpenPOWER on IntegriCloud