version 1.49, 2014/12/13 10:31:07 |
version 1.50, 2014/12/14 09:12:59 |
|
|
; |
; |
/* POSIX defines allowed commands as {a,c,d,i,s} */ |
/* POSIX defines allowed commands as {a,c,d,i,s} */ |
if (isdigit((unsigned char)*buf) && |
if (isdigit((unsigned char)*buf) && |
(*t == 'a' || *t == 'c' || *t == 'd' || *t == 'i' || *t == 's')) { |
*t != '\0' && strchr("acdis", *t) != NULL) { |
if (pipefp != NULL) |
if (pipefp != NULL) |
fputs(buf, pipefp); |
fputs(buf, pipefp); |
if (*t != 'd') { |
if (*t != 'd' && *t != 's') { |
while (pgets(buf, sizeof buf, pfp) != NULL) { |
while (pgets(buf, sizeof buf, pfp) != NULL) { |
p_input_line++; |
p_input_line++; |
if (pipefp != NULL) |
if (pipefp != NULL) |