diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-09-01 16:10:29 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-09-01 16:10:29 +0000 |
commit | af6055a9978f27ed2e0fc75241af996a3008fa1a (patch) | |
tree | 8fd6eaa67487c62b00d6e9aa0f407385bfa96256 /graphics/svgalib | |
parent | Yet again improve keyboard support. (diff) |
Properly name tty (use %x instead of %d to get device name).
Submitted by: Dan Nelson <dnelson@emsphone.com>
Notes
Notes:
svn path=/head/; revision=32171
Diffstat (limited to 'graphics/svgalib')
-rw-r--r-- | graphics/svgalib/files/patch-am | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/svgalib/files/patch-am b/graphics/svgalib/files/patch-am index 86ea29ebde83..4aa37a909ba8 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()); |