aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrunchy <crunchy>2003-07-27 20:50:01 +0000
committercrunchy <crunchy>2003-07-27 20:50:01 +0000
commit01c7218a36f9917461abc3fb4d5695f368491318 (patch)
treeef8b1e072f54a32c2f9668e6cade913869b74dc0
parent6e348aa93e964ef0bf5f05c556baebf025956b1b (diff)
downloadmpiosh-01c7218a36f9917461abc3fb4d5695f368491318.tar.gz
mpiosh-01c7218a36f9917461abc3fb4d5695f368491318.tar.bz2
mpiosh-01c7218a36f9917461abc3fb4d5695f368491318.zip
fixed bug in cd command
-rw-r--r--ChangeLog5
-rw-r--r--mpiosh/callback.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5240cbd..68a9b6e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 Bsching <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 Bsching <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);