X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=debian%2Fpatches%2F05_devfs-fix;fp=debian%2Fpatches%2F05_devfs-fix;h=0000000000000000000000000000000000000000;hb=5fa1146af48a9a037736581e400431c71bd93b29;hp=93f14fbb2f865a5c9e44b7392cf8ae32e7d49a55;hpb=0e17115ad50cd24d1a805661ab54dcf442f70abf;p=pkg%2Fbeep.git diff --git a/debian/patches/05_devfs-fix b/debian/patches/05_devfs-fix deleted file mode 100644 index 93f14fb..0000000 --- a/debian/patches/05_devfs-fix +++ /dev/null @@ -1,24 +0,0 @@ -Author: Goswin Brederlow vim:ft=diff: -Description: Also try /dev/vc/0, devfs support (BTS #148884) - -Index: beep-1.2.2/beep.c -=================================================================== ---- beep-1.2.2.orig/beep.c -+++ beep-1.2.2/beep.c -@@ -239,10 +239,12 @@ void play_beep(beep_parms_t parms) { - - /* try to snag the console */ - 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); -+ if((console_fd = open("/dev/vc/0", O_WRONLY)) == -1) { -+ fprintf(stderr, "Could not open /dev/tty0 or /dev/vc/0 for writing.\n"); -+ printf("\a"); /* Output the only beep we can, in an effort to fall back on usefulness */ -+ perror("open"); -+ exit(1); -+ } - } - - /* Beep */