diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2001-08-21 23:40:31 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2001-08-21 23:40:31 +0000 |
| commit | 47a5a676e46d60136bed62d7d25c9dd66be24706 (patch) | |
| tree | 31fa3fdb145dafc574c46c2adcf43eacfad4e269 /src | |
| parent | 63e760248419c157f3677582775f498f65bddd3d (diff) | |
* glob.c (amatch, case '*'): Treat multiple asterisks the same as one
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13682 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/appl/gssftp/ftp/ChangeLog | 5 | ||||
| -rw-r--r-- | src/appl/gssftp/ftp/glob.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/appl/gssftp/ftp/ChangeLog b/src/appl/gssftp/ftp/ChangeLog index 490be31b6..5d774f566 100644 --- a/src/appl/gssftp/ftp/ChangeLog +++ b/src/appl/gssftp/ftp/ChangeLog @@ -1,3 +1,8 @@ +2001-08-21 Ken Raeburn <raeburn@mit.edu> + + * glob.c (amatch, case '*'): Treat multiple asterisks the same as + one. + 2001-07-30 Ezra Peisach <epeisach@mit.edu> * ftp.c: Declare mech_type in struct gss_trials gss_OID to be diff --git a/src/appl/gssftp/ftp/glob.c b/src/appl/gssftp/ftp/glob.c index d0e7314af..4b760f25b 100644 --- a/src/appl/gssftp/ftp/glob.c +++ b/src/appl/gssftp/ftp/glob.c @@ -469,6 +469,12 @@ amatch(s, p) continue; case '*': + /* Multiple stars are equivalent to one. + Don't chew up cpu time with O(n**2) + recursion if a long string of them is + given. */ + while (*p == '*') + p++; if (!*p) return (1); if (*p == '/') { |
