Unverified Commit 96735142 authored by meskio's avatar meskio Committed by Kali Kaneko
Browse files

[bug] firewall isup return 1 is not an error

bitmask-root firewall isup uses the return code to signal if the
firewall is up or not. We should not report it as an error.

- Resolves: #179
parent 924428be
......@@ -193,13 +193,12 @@ func runBitmaskRoot(arg ...string) error {
arg = append([]string{bitmaskRoot}, arg...)
out, err := exec.Command("pkexec", arg...).Output()
if err != nil {
if err != nil && arg[2] != "isup" {
log.Println("Error while running bitmask-root:")
log.Println("args: ", arg)
log.Println("output: ", string(out))
return err
}
return nil
return err
}
func bitmaskRootPath() (string, error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment