14 lines
723 B
Diff
14 lines
723 B
Diff
Index: gpm-1.20.1/src/prog/gpm-root.y
|
|
===================================================================
|
|
--- gpm-1.20.1.orig/src/prog/gpm-root.y 2002-12-24 23:57:16.000000000 +0100
|
|
+++ gpm-1.20.1/src/prog/gpm-root.y 2007-12-12 11:15:15.000000000 +0100
|
|
@@ -525,7 +525,7 @@ int f_bgcmd(int mode, DrawItem *self, in
|
|
open("/dev/null",O_RDONLY); /* stdin */
|
|
open(consolename,O_WRONLY); /* stdout */
|
|
dup(1); /* stderr */
|
|
- for (i=3;i<OPEN_MAX; i++) close(i);
|
|
+ for (i=3;i<FOPEN_MAX; i++) close(i);
|
|
execl("/bin/sh","sh","-c",self->arg,(char *)NULL);
|
|
exit(1); /* shouldn't happen */
|
|
default: return 0;
|