aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plumb/rules.c
Commit message (Collapse)AuthorAgeFilesLines
* plumber: use strtoul to parse subexpression match variable substitutionsIgor Burago2023-03-301-24/+9
|
* plumber: allow multi-digit subexpression match variable substitutionsIgor Burago2023-03-301-2/+23
|
* plumber: allow underscores in variable names in plumbing rulesIgor Burago2022-09-071-10/+19
| | | | Fixes #561.
* plumber: fail on buffer exhaustion or runaway quotes in string expansionIgor Burago2022-09-061-11/+25
|
* plumber: fix EOF detection on writes to rules file (#257)Fazlul Shahriar2019-09-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of checking Fcall.data==nil, check Fcall.count==0. The former check always fails after `gcc -O2` optimizations (gcc version 8.3.0). Also fix an out-of-bound read detected by valgrind: ``` ==31162== Invalid read of size 1 ==31162== at 0x11005E: morerules (rules.c:739) ==31162== by 0x110254: writerules (rules.c:775) ==31162== by 0x10D2FE: fsyswrite (fsys.c:848) ==31162== by 0x10C304: fsysproc (fsys.c:248) ==31162== by 0x112E8C: threadstart (thread.c:96) ==31162== by 0x4A682BF: ??? (in /usr/lib/libc-2.29.so) ==31162== Address 0x4ea984a is 0 bytes after a block of size 250 alloc'd ==31162== at 0x483AD7B: realloc (vg_replace_malloc.c:826) ==31162== by 0x1196F3: p9realloc (malloc.c:53) ==31162== by 0x10BDFD: erealloc (plumber.c:124) ==31162== by 0x10FCD9: concat (rules.c:642) ==31162== by 0x10FCD9: concat (rules.c:635) ==31162== by 0x110230: writerules (rules.c:773) ==31162== by 0x10D2FE: fsyswrite (fsys.c:848) ==31162== by 0x10C304: fsysproc (fsys.c:248) ==31162== by 0x112E8C: threadstart (thread.c:96) ==31162== by 0x4A682BF: ??? (in /usr/lib/libc-2.29.so) ``` Fixes #256
* plumb: remove debugging printRuss Cox2012-05-151-1/+0
| | | | | R=rsc http://codereview.appspot.com/6210059
* NetBSD-macppc ctype needs uchars.rsc2005-09-091-3/+3
|
* add $plan9 variablersc2005-01-111-0/+5
|
* Today's changes.rsc2004-03-251-1/+1
| | | | More changes.
* Amazingly picky bug fixes from Valgrind.rsc2004-03-051-0/+1
|
* Pipes cannot use SOCK_DGRAM. Back to SOCK_STREAM.rsc2004-03-051-1/+1
| | | | | | Add debugging to fdwait. Rewrite getcallerpc on PowerMac to be correct.
* Add support for user-level 9P servers/clients and various bug fixes to go ↵rsc2003-12-111-2/+2
| | | | with them.
* Plan 9 version, nothing tweaked yet.rsc2003-11-231-0/+779