version 1.4, 2001/01/29 01:58:06 |
version 1.5, 2001/05/23 22:20:35 |
|
|
/* |
/* |
* Initialize anything the directory management routines need |
* Initialize anything the directory management routines need |
*/ |
*/ |
VOID |
void |
dirinit() |
dirinit() |
{ |
{ |
|
|
|
|
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); |