diff options
Diffstat (limited to 'sys/cmd/rc/glob.c')
-rw-r--r-- | sys/cmd/rc/glob.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/cmd/rc/glob.c b/sys/cmd/rc/glob.c index 95b2ef3..193652a 100644 --- a/sys/cmd/rc/glob.c +++ b/sys/cmd/rc/glob.c @@ -19,7 +19,7 @@ unglob(char *s) } /* - * inspiration from rsc's blog post + * inspiration from rsc's blog post * modified for utf8 sequences and character classes * returns 1 if string matches pattern is found, 0 otherwise */ @@ -158,8 +158,8 @@ globdir(char *p, char *path, int fd) j = 0; while((e = readdir(d))) { - if (e->d_name[0] == '.') - if (e->d_name[1] == 0 || /* . */ + if(e->d_name[0] == '.') + if(e->d_name[1] == 0 || /* . */ (e->d_name[1] == '.' && e->d_name[2] == 0)) /* .. */ continue; |