aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrunchy <crunchy>2002-09-19 21:02:45 +0000
committercrunchy <crunchy>2002-09-19 21:02:45 +0000
commit65007d1a9936514535896afa23614304c09b77c2 (patch)
treef17f69e3d783001e50c5dbc4034c256af5bc9783
parent7eb36f9021e86a75fd291b6aae424117a230134d (diff)
downloadmpiosh-65007d1a9936514535896afa23614304c09b77c2.tar.gz
mpiosh-65007d1a9936514535896afa23614304c09b77c2.tar.bz2
mpiosh-65007d1a9936514535896afa23614304c09b77c2.zip
bug fix in mpiosh_command_regex_fix
-rw-r--r--ChangeLog3
-rw-r--r--mpiosh/mpiosh.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e075efa..77d77cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2002-09-19 Andreas Buesching <crunchy@tzi.de>
+ * mpiosh/mpiosh.c (mpiosh_command_regex_fix): hopefully fixed a
+ bug (Sorry Markus)
+
* mpiosh/callback.c (mpiosh_cmd_mput): using new error handling
functions
diff --git a/mpiosh/mpiosh.c b/mpiosh/mpiosh.c
index aa4ff2d..83c45fb 100644
--- a/mpiosh/mpiosh.c
+++ b/mpiosh/mpiosh.c
@@ -2,7 +2,7 @@
/*
*
- * $Id: mpiosh.c,v 1.14 2002/09/18 22:18:29 germeier Exp $
+ * $Id: mpiosh.c,v 1.15 2002/09/19 21:02:45 crunchy Exp $
*
* Author: Andreas Büsching <crunchy@tzi.de>
*
@@ -256,13 +256,13 @@ mpiosh_command_regex_fix(char *argv[])
new_pos = buffer;
*new_pos++ = '^';
while (*help != '\0') {
- if (*help == '*' && ((help = *walk) || (*(help - 1) != '.'))) {
+ if (*help == '*' && ((help == *walk) || (*(help - 1) != '.'))) {
*new_pos++ = '.';
*new_pos = *help;
} else if ((*help == '.') && (*help != '*')) {
*new_pos++ = '\\';
*new_pos = *help;
- } else if (*help == '?' && ((help = *walk) || (*(help - 1) != '\\'))) {
+ } else if (*help == '?' && ((help == *walk) || (*(help - 1) != '\\'))) {
*new_pos = '.';
} else {
*new_pos = *help;