fix to -group # usage (ala previous -user # fix)
authorBill Joy <root@ucbvax.Berkeley.EDU>
Sat, 4 Jul 1981 14:23:03 +0000 (06:23 -0800)
committerBill Joy <root@ucbvax.Berkeley.EDU>
Sat, 4 Jul 1981 14:23:03 +0000 (06:23 -0800)
SCCS-vsn: usr.bin/find/find.c 4.4

usr/src/usr.bin/find/find.c

index 20b1476..a1279b8 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)find.c      4.3 (Berkeley) %G%";
+static char *sccsid = "@(#)find.c      4.4 (Berkeley) %G%";
 /*     find    COMPILE:        cc -o find -s -O -i find.c -lS  */
 #include <stdio.h>
 #include <sys/types.h>
 /*     find    COMPILE:        cc -o find -s -O -i find.c -lS  */
 #include <stdio.h>
 #include <sys/types.h>
@@ -181,7 +181,7 @@ struct anode *e3() { /* parse parens and predicates */
                return(mk(ino, (struct anode *)atoi(b), (struct anode *)s));
        else if(EQ(a, "-group")) {
                if((i=getunum("/etc/group", b)) == -1) {
                return(mk(ino, (struct anode *)atoi(b), (struct anode *)s));
        else if(EQ(a, "-group")) {
                if((i=getunum("/etc/group", b)) == -1) {
-                       if(gmatch(b, "[0-9][0-9]*"))
+                       if(gmatch(b, "[0-9]*"))
                                return mk(group, (struct anode *)atoi(b), (struct anode *)s);
                        fprintf(stderr, "find: cannot find -group name\n");
                        exit(1);
                                return mk(group, (struct anode *)atoi(b), (struct anode *)s);
                        fprintf(stderr, "find: cannot find -group name\n");
                        exit(1);