diff options
| author | Toby Goodwin <tjg@star.le.ac.uk> | 1999-11-10 14:55:51 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:22:10 +0100 |
| commit | 3e9e4d3f8f518f8f467066593ae6f270d97f6d60 (patch) | |
| tree | 7d41f75ee428d4bb332b9664c116a8a6ce6ccea0 /glob.c | |
| parent | 3815ffb98e9db3d593219cead05284f983eb6d71 (diff) | |
beta: rc-1.6b1
Diffstat (limited to 'glob.c')
| -rw-r--r-- | glob.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -216,12 +216,8 @@ static List *doglob(char *w, char *m) { p = pattern; md = metadir; mp = metapattern; - if (*s == '/') - while (*s == '/') - *d++ = *s++, *md++ = *m++; - else - while (*s != '/' && *s != '\0') - *d++ = *s++, *md++ = *m++; /* get first directory component */ + while (*s != '/' && *s != '\0') + *d++ = *s++, *md++ = *m++; /* get first directory component */ *d = '\0'; /* Special case: no slashes in the pattern, i.e., open the current directory. |