Check input before trying to disable a non-existing daemon to prevent parsing
authorajacoutot <ajacoutot@openbsd.org>
Thu, 13 Jul 2023 13:54:27 +0000 (13:54 +0000)
committerajacoutot <ajacoutot@openbsd.org>
Thu, 13 Jul 2023 13:54:27 +0000 (13:54 +0000)
commitac73c2845b834e6ab00afc24a89f772fa25f5139
treeafde828cf3311d7a543d281851462e12a0729625
parentc4936e802f99eef18a897df99eca700ff0f88540
Check input before trying to disable a non-existing daemon to prevent parsing
bogus characters and outputing hell on the console.

based on an initial submission from Anthony Coulter, thanks!
usr.sbin/rcctl/rcctl.sh