summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9304042)
Fixes
c0d9c4f3c ("treewide: filter shell arguments through shellquote() where applicable")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
)
function s.getPID(section) -- Universal function which returns valid pid # or nil
)
function s.getPID(section) -- Universal function which returns valid pid # or nil
- local pid = sys.exec("%s | grep -w [o]penvpn(%s)" % { psstring, section })
+ local pid = sys.exec("%s | grep -w '[o]penvpn(%s)'" % { psstring, section })
if pid and #pid > 0 then
return tonumber(pid:match("^%d+"))
else
if pid and #pid > 0 then
return tonumber(pid:match("^%d+"))
else