From 01c7218a36f9917461abc3fb4d5695f368491318 Mon Sep 17 00:00:00 2001 From: crunchy Date: Sun, 27 Jul 2003 20:50:01 +0000 Subject: fixed bug in cd command --- mpiosh/callback.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mpiosh') 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 * - * $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 * @@ -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); -- cgit v1.2.3