diff options
author | guido <guido@FreeBSD.org> | 1995-02-27 20:52:36 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 1995-02-27 20:52:36 +0000 |
commit | 5ed0eb541255a49d2fe844eced72201e2c053205 (patch) | |
tree | cfec41297d690c5a70037e1a57183d9f4cee1b49 /usr.bin/find/find.c | |
parent | 6becd688afcb2158ca5aef1388b844ca4191ecb7 (diff) | |
download | FreeBSD-src-5ed0eb541255a49d2fe844eced72201e2c053205.zip FreeBSD-src-5ed0eb541255a49d2fe844eced72201e2c053205.tar.gz |
Fix completely broken find behaviour:
a find -foo -o -bar would behave like find -bar. The same for -a
This broke (among others) ./etc/security.
Obtained from: NetBSD
Diffstat (limited to 'usr.bin/find/find.c')
-rw-r--r-- | usr.bin/find/find.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/find/find.c b/usr.bin/find/find.c index 22fc3a3..b1b48ba 100644 --- a/usr.bin/find/find.c +++ b/usr.bin/find/find.c @@ -99,6 +99,13 @@ find_formplan(argv) if (plan == NULL) tail = plan = new; else { + new = c_openparen(); + new->next = plan; + plan = new; + new = c_closeparen(); + tail->next = new; + tail = new; + new = c_print(); tail->next = new; tail = new; } |