percent_x.c (44744) | percent_x.c (257398) |
---|---|
1 /* 2 * percent_x() takes a string and performs %<char> expansions. It aborts the 3 * program when the expansion would overflow the output buffer. The result 4 * of %<char> expansion may be passed on to a shell process. For this 5 * reason, characters with a special meaning to shells are replaced by 6 * underscores. 7 * 8 * Diagnostics are reported through syslog(3). --- 5 unchanged lines hidden (view full) --- 14static char sccsid[] = "@(#) percent_x.c 1.4 94/12/28 17:42:37"; 15#endif 16 17/* System libraries. */ 18 19#include <stdio.h> 20#include <syslog.h> 21#include <string.h> | 1 /* 2 * percent_x() takes a string and performs %<char> expansions. It aborts the 3 * program when the expansion would overflow the output buffer. The result 4 * of %<char> expansion may be passed on to a shell process. For this 5 * reason, characters with a special meaning to shells are replaced by 6 * underscores. 7 * 8 * Diagnostics are reported through syslog(3). --- 5 unchanged lines hidden (view full) --- 14static char sccsid[] = "@(#) percent_x.c 1.4 94/12/28 17:42:37"; 15#endif 16 17/* System libraries. */ 18 19#include <stdio.h> 20#include <syslog.h> 21#include <string.h> |
22#include <unistd.h> |
|
22 23extern void exit(); 24 25/* Local stuff. */ 26 27#include "tcpd.h" 28 29/* percent_x - do %<char> expansion, abort if result buffer is too small */ --- 57 unchanged lines hidden --- | 23 24extern void exit(); 25 26/* Local stuff. */ 27 28#include "tcpd.h" 29 30/* percent_x - do %<char> expansion, abort if result buffer is too small */ --- 57 unchanged lines hidden --- |