From 65007d1a9936514535896afa23614304c09b77c2 Mon Sep 17 00:00:00 2001 From: crunchy Date: Thu, 19 Sep 2002 21:02:45 +0000 Subject: bug fix in mpiosh_command_regex_fix --- ChangeLog | 3 +++ mpiosh/mpiosh.c | 6 +++--- 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 + * 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 * @@ -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; -- cgit v1.2.3