Minor patches
This commit is contained in:
parent
9108653b95
commit
fb39d8b886
|
@ -25,7 +25,7 @@
|
||||||
* PATCHLEVEL 9
|
* PATCHLEVEL 9
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char main_rcsid[] = "$Id: main.c,v 1.6 1997/05/28 10:07:34 hipp Exp $";
|
char main_rcsid[] = "$Id: main.c,v 1.7 1997/05/30 14:05:54 hipp Exp $";
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@ -920,7 +920,7 @@ int device_script(char *program,int in,int out)
|
||||||
setgid(getgid());
|
setgid(getgid());
|
||||||
execl("/bin/sh", "sh", "-c", program, (char *)0);
|
execl("/bin/sh", "sh", "-c", program, (char *)0);
|
||||||
syslog(LOG_ERR, "could not exec /bin/sh: %m");
|
syslog(LOG_ERR, "could not exec /bin/sh: %m");
|
||||||
_exit(99);
|
exit(99);
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char sys_rcsid[] = "$Id: sys-linux.c,v 1.4 1997/05/28 10:07:40 hipp Exp $";
|
char sys_rcsid[] = "$Id: sys-linux.c,v 1.5 1997/05/30 14:05:57 hipp Exp $";
|
||||||
|
|
||||||
#define _LINUX_STRING_H_
|
#define _LINUX_STRING_H_
|
||||||
|
|
||||||
|
@ -273,7 +273,9 @@ void output (int linkunit, unsigned char *p, int len)
|
||||||
|
|
||||||
if (write(lns[linkunit].fd, p, len) < 0) {
|
if (write(lns[linkunit].fd, p, len) < 0) {
|
||||||
syslog(LOG_ERR, "write, unit: %d fd: %d: %m",linkunit,lns[linkunit].fd);
|
syslog(LOG_ERR, "write, unit: %d fd: %d: %m",linkunit,lns[linkunit].fd);
|
||||||
|
#if 0
|
||||||
die(1);
|
die(1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,7 +291,9 @@ int read_packet (unsigned char *buf,int linkunit)
|
||||||
if (errno == EWOULDBLOCK)
|
if (errno == EWOULDBLOCK)
|
||||||
return -1;
|
return -1;
|
||||||
syslog(LOG_ERR, "read(fd): %m");
|
syslog(LOG_ERR, "read(fd): %m");
|
||||||
|
#if 0
|
||||||
die(1);
|
die(1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue