From 31b10e364ff4ca7c04b96637dab6c6cf347a6a2a Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 18 Sep 2016 16:54:24 +0200 Subject: cpu: quote remaining remote command arguments, don't syslog on missing /mnt/term/dev/cpunote file --- sys/src/cmd/cpu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/src') diff --git a/sys/src/cmd/cpu.c b/sys/src/cmd/cpu.c index bc82316d9..e45df8cac 100644 --- a/sys/src/cmd/cpu.c +++ b/sys/src/cmd/cpu.c @@ -198,7 +198,7 @@ main(int argc, char **argv) *s++ = '!'; *s = 0; while(p = ARGF()) - s = seprint(s, cmd+sizeof(cmd), " %s", p); + s = seprint(s, cmd+sizeof(cmd), " %q", p); break; case 'k': keyspec = smprint("%s %s", keyspec, EARGF(usage())); @@ -783,10 +783,8 @@ rmtnoteproc(void) _exits(0); case 0: fd = open(rmtnotefile, OREAD); - if(fd < 0){ - syslog(0, "cpu", "cpu -R: can't open %s", rmtnotefile); + if(fd < 0) _exits(0); - } for(;;){ n = read(fd, buf, sizeof(buf)-1); -- cgit v1.2.3