diff options
author | crunchy <crunchy> | 2003-07-27 20:50:01 +0000 |
---|---|---|
committer | crunchy <crunchy> | 2003-07-27 20:50:01 +0000 |
commit | 01c7218a36f9917461abc3fb4d5695f368491318 (patch) | |
tree | ef8b1e072f54a32c2f9668e6cade913869b74dc0 /mpiosh | |
parent | 6e348aa93e964ef0bf5f05c556baebf025956b1b (diff) | |
download | mpiosh-01c7218a36f9917461abc3fb4d5695f368491318.tar.gz mpiosh-01c7218a36f9917461abc3fb4d5695f368491318.tar.bz2 mpiosh-01c7218a36f9917461abc3fb4d5695f368491318.zip |
fixed bug in cd command
Diffstat (limited to 'mpiosh')
-rw-r--r-- | mpiosh/callback.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mpiosh/callback.c b/mpiosh/callback.c index 2404850..b7f4582 100644 --- a/mpiosh/callback.c +++ b/mpiosh/callback.c @@ -2,7 +2,7 @@ * * Author: Andreas Büsching <crunchy@tzi.de> * - * $Id: callback.c,v 1.45 2003/07/01 09:06:11 germeier Exp $ + * $Id: callback.c,v 1.46 2003/07/27 20:50:01 crunchy Exp $ * * Copyright (C) 2001 Andreas Büsching <crunchy@tzi.de> * @@ -207,7 +207,10 @@ mpiosh_cmd_cd(char *args[]) MPIOSH_CHECK_CONNECTION_CLOSED; - mpio_directory_cd(mpiosh.dev, mpiosh.card, args[0]); + if ( args[ 0 ] != NULL ) + mpio_directory_cd(mpiosh.dev, mpiosh.card, args[0]); + else + mpio_directory_cd(mpiosh.dev, mpiosh.card, "."); mpio_directory_pwd(mpiosh.dev, mpiosh.card, pwd); printf ("directory is now: %s\n", pwd); |