commit a830518b711387c072755100b8c6d9142b19656e from: Omar Polo date: Thu Jun 09 17:21:46 2022 UTC use a strictier pledge for `amused add' now that we're using canonpath instead of realpath(3), we can drop the rpath pledge promise. commit - ef593b43ed4d545943bfb6ebdcc0b8a9c9450cd1 commit + a830518b711387c072755100b8c6d9142b19656e blob - ab3abced1476bfe2180c7604ac204231a47dc2b0 blob + 2036dbf365e7a070da18f97ac5d6900620e005d6 --- ctl.c +++ ctl.c @@ -55,7 +55,7 @@ struct ctl_command ctl_commands[] = { { "toggle", TOGGLE, ctl_noarg, "" }, { "stop", STOP, ctl_noarg, "" }, { "restart", RESTART, ctl_noarg, "" }, - { "add", ADD, ctl_add, "files...", 1 }, + { "add", ADD, ctl_add, "files..." }, { "flush", FLUSH, ctl_noarg, "" }, { "show", SHOW, ctl_show, "[-p]" }, { "status", STATUS, ctl_noarg, "" }, @@ -552,9 +552,6 @@ ctl_add(struct parse_result *res, int argc, char **arg ctl_usage(res->ctl); res->files = argv; - if (pledge("stdio rpath", NULL) == -1) - fatal("pledge"); - return ctlaction(res); }