gpm/gpm-1.20.1-no-console-error.patch
prockai 1e4ad8c47f - do not ooops in gpm when console device cannot be found, print an error
message instead and exit(1), as per BR 140025, 176178
- do not print messages in libgpm, unless envvar GPM_VERBOSE is set --
    avoids unwanted clutter from libgpm in apps like dialog or mc when gpm
    is not available
2006-01-18 12:07:55 +00:00

16 lines
517 B
Diff

--- gpm-1.20.1/src/console.c.no-console-error 2006-01-18 17:06:15.000000000 +0100
+++ gpm-1.20.1/src/console.c 2006-01-18 17:08:19.000000000 +0100
@@ -249,8 +249,10 @@
/* Failed, try OLD console */
else if (stat(GPM_OLD_CONSOLE, &buf) == 0)
console.device = GPM_OLD_CONSOLE;
- else
- gpm_report(GPM_PR_OOPS, "Can't determine console device");
+ else { // XXX handle this gracefully?
+ fprintf( stderr, "no console device found" );
+ exit( 1 );
+ }
return console.device;
}