]> git.deb.at Git - pkg/beep.git/blobdiff - beep.c
Imported Debian patch 1.2.2-2.woody1
[pkg/beep.git] / beep.c
diff --git a/beep.c b/beep.c
index f774b56247d9fba66f9cfdff011708a985dee727..6e4be8d9c2716def534d0a352cd72f3ed8d03a3d 100644 (file)
--- a/beep.c
+++ b/beep.c
@@ -218,8 +218,8 @@ void play_beep(beep_parms_t parms) {
   int i; /* loop counter */
 
   /* try to snag the console */
-  if((console_fd = open("/dev/console", O_WRONLY)) == -1) {
-    fprintf(stderr, "Could not open /dev/console for writing.\n");
+  if((console_fd = open("/dev/tty0", O_WRONLY)) == -1) {
+    fprintf(stderr, "Could not open /dev/tty0 for writing.\n");
     printf("\a");  /* Output the only beep we can, in an effort to fall back on usefulness */
     perror("open");
     exit(1);