berry@tolerant.UUCP (David Berry) (10/11/85)
*** REPLACE THIS LINE WITH YOUR MESSAGE *** The following diffs fix macget so that it doesn't throw up it's hands in disgust whenever it sees a filename from the mac that has a slash in it. *** macget.c.old Thu Oct 10 21:44:38 1985 --- macget.c Thu Oct 10 21:48:46 1985 *************** *** 88,93 * revised ddj 7/16/84 -- protocol changes for MacTerminal Beta Version 0.5X * revised ddj 7/31/84 -- pre-4.2 signal bugs fixed in timedout() * revised ddj 11/7/84 -- renamed send_sync() -> get_sync() */ char usage[] = "usage: \"macget [-o] [-rdu] [filename]\"\n"; --- 88,94 ----- * revised ddj 7/16/84 -- protocol changes for MacTerminal Beta Version 0.5X * revised ddj 7/31/84 -- pre-4.2 signal bugs fixed in timedout() * revised ddj 11/7/84 -- renamed send_sync() -> get_sync() + * revised dwb 9/10/85 -- fixed for '/' in macintosh name */ char usage[] = "usage: \"macget [-o] [-rdu] [filename]\"\n"; *************** *** 169,175 strncpy(mh.m_name, buf + H_NAMEOFF, n); mh.m_name[n] = '\0'; } ! for (np = mh.m_name; *np; np++) if (*np == ' ') *np = '_'; if (mode == FULL) { --- 170,176 ----- strncpy(mh.m_name, buf + H_NAMEOFF, n); mh.m_name[n] = '\0'; } ! for (np = mh.m_name; *np; np++) { if (*np == ' ') *np = '_'; if (*np == '/') *np = '-'; /* dwb 9/10/85 */ } *************** *** 171,176 } for (np = mh.m_name; *np; np++) if (*np == ' ') *np = '_'; if (mode == FULL) { sprintf(files.f_info, "%s.info", mh.m_name); --- 172,179 ----- } for (np = mh.m_name; *np; np++) { if (*np == ' ') *np = '_'; + if (*np == '/') *np = '-'; /* dwb 9/10/85 */ + } if (mode == FULL) { sprintf(files.f_info, "%s.info", mh.m_name); David W. Berry