version 1.57, 2015/11/05 09:48:21 |
version 1.58, 2016/08/16 19:00:59 |
|
|
|
|
printf("\nLog message unchanged or not specified\n" |
printf("\nLog message unchanged or not specified\n" |
"a)bort, c)ontinue, e)dit, !)reuse this message " |
"a)bort, c)ontinue, e)dit, !)reuse this message " |
"unchanged for remaining dirs\nAction: (continue) "); |
"unchanged for remaining dirs\nAction: (abort) "); |
(void)fflush(stdout); |
(void)fflush(stdout); |
|
|
c = getc(stdin); |
c = getc(stdin); |
if (c == EOF || c == 'a') { |
if (c == EOF || c == '\n' || c == 'a' || c == 'A') { |
fatal("Aborted by user"); |
fatal("Aborted by user"); |
} else if (c == '\n' || c == 'c') { |
} else if (c == 'c' || c == 'C') { |
if (prevmsg == NULL) |
if (prevmsg == NULL) |
prevmsg = xstrdup(""); |
prevmsg = xstrdup(""); |
logmsg = xstrdup(prevmsg); |
logmsg = xstrdup(prevmsg); |
break; |
break; |
} else if (c == 'e') { |
} else if (c == 'e' || c == 'E') { |
continue; |
continue; |
} else if (c == '!') { |
} else if (c == '!') { |
reuse = 1; |
reuse = 1; |