X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fwhatnowsbr.c;h=8cb674461715672112290b8be91b747bbbf409d2;hb=556e1267b7be84fd25c2d52aa754d623889d52ac;hp=3ed0ea4a172f52bca3bb8ddccaa03aba4bb04af4;hpb=47a78dcb28c6a836574f73f40b05d4adc9c3ad81;p=mmh diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 3ed0ea4..8cb6744 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -688,12 +688,6 @@ editfile(char **ed, char **arg, char *file, int use, struct msgs *mp, default: if ((status = pidwait(pid, NOTOK))) { -#ifdef ATTVIBUG - if ((cp = mhbasename(*ed)) && strcmp(cp, "vi") == 0 && - (status & 0x00ff) == 0) - status = 0; - else { -#endif if (((status & 0xff00) != 0xff00) && (!reedit || (status & 0x00ff))) { if (!use && (status & 0xff00) && (rename(file, cp = m_backup (file)) != NOTOK)) { @@ -704,9 +698,6 @@ editfile(char **ed, char **arg, char *file, int use, struct msgs *mp, } status = -2; /* maybe "reedit ? -2 : -1"? */ break; -#ifdef ATTVIBUG - } -#endif } reedit++; @@ -1009,7 +1000,7 @@ sendit(char *sp, char **arg, char *file, int pushed) dp = getcpy(cp); for (ap = brkstring(dp, " ", "\n"); ap && *ap; ap++) { vec[vecp++] = "-alias"; - vec[vecp++] = *ap; + vec[vecp++] = getcpy(etcpath(*ap)); } }