diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | mpiosh/callback.c | 7 |
2 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2003-07-27 Andreas Buesching <crunchy@tzi.de> + + * mpiosh/callback.c (mpiosh_cmd_cd): checking argument. + NULL is replaced with "." + 2003-07-24 Markus Germeier <mager@tzi.de> * detect new SmartMedia chips and report them * added version to mpio_smartmedia_t 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); |