cpu: quote remaining remote command arguments, don't syslog on missing /mnt/term/dev/cpunote file
This commit is contained in:
parent
4052945479
commit
31b10e364f
1 changed files with 2 additions and 4 deletions
|
@ -198,7 +198,7 @@ main(int argc, char **argv)
|
||||||
*s++ = '!';
|
*s++ = '!';
|
||||||
*s = 0;
|
*s = 0;
|
||||||
while(p = ARGF())
|
while(p = ARGF())
|
||||||
s = seprint(s, cmd+sizeof(cmd), " %s", p);
|
s = seprint(s, cmd+sizeof(cmd), " %q", p);
|
||||||
break;
|
break;
|
||||||
case 'k':
|
case 'k':
|
||||||
keyspec = smprint("%s %s", keyspec, EARGF(usage()));
|
keyspec = smprint("%s %s", keyspec, EARGF(usage()));
|
||||||
|
@ -783,10 +783,8 @@ rmtnoteproc(void)
|
||||||
_exits(0);
|
_exits(0);
|
||||||
case 0:
|
case 0:
|
||||||
fd = open(rmtnotefile, OREAD);
|
fd = open(rmtnotefile, OREAD);
|
||||||
if(fd < 0){
|
if(fd < 0)
|
||||||
syslog(0, "cpu", "cpu -R: can't open %s", rmtnotefile);
|
|
||||||
_exits(0);
|
_exits(0);
|
||||||
}
|
|
||||||
|
|
||||||
for(;;){
|
for(;;){
|
||||||
n = read(fd, buf, sizeof(buf)-1);
|
n = read(fd, buf, sizeof(buf)-1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue