[BACK]Return to dir.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/dir.c between version 1.4 and 1.5

version 1.4, 2001/01/29 01:58:06 version 1.5, 2001/05/23 22:20:35
Line 16 
Line 16 
 /*  /*
  * Initialize anything the directory management routines need   * Initialize anything the directory management routines need
  */   */
 VOID  void
 dirinit()  dirinit()
 {  {
   
Line 38 
Line 38 
         if ((s = ereply("Change default directory: ", bufc, NPAT)) != TRUE)          if ((s = ereply("Change default directory: ", bufc, NPAT)) != TRUE)
                 return (s);                  return (s);
         if (bufc[0] == '\0')          if (bufc[0] == '\0')
                 (VOID) strcpy(bufc, wdir);                  (void) strcpy(bufc, wdir);
         if (chdir(bufc) == -1) {          if (chdir(bufc) == -1) {
                 ewprintf("Can't change dir to %s", bufc);                  ewprintf("Can't change dir to %s", bufc);
                 return (FALSE);                  return (FALSE);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5