aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-05-19 00:56:38 +0200
committerGitHub <[email protected]>2022-05-18 15:56:38 -0700
commite02d84d3a5158a942c3f09d11c973e5aabb6fa40 (patch)
tree54ba86c86cd583caf8f9b9fb244ffccc1570e986
parent2b4f2fc93c4298415c5bc70554514c3e8892e5d5 (diff)
linux: libshare: smb: don't swallow net(1) errors
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13191 Closes #13470
-rw-r--r--lib/libshare/os/linux/smb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libshare/os/linux/smb.c b/lib/libshare/os/linux/smb.c
index 2a2b32bc1..57965ebfa 100644
--- a/lib/libshare/os/linux/smb.c
+++ b/lib/libshare/os/linux/smb.c
@@ -248,7 +248,7 @@ smb_enable_share_one(const char *sharename, const char *sharepath)
NULL,
};
- if (libzfs_run_process(argv[0], argv, 0) < 0)
+ if (libzfs_run_process(argv[0], argv, 0) != 0)
return (SA_SYSTEM_ERR);
/* Reload the share file */
@@ -297,7 +297,7 @@ smb_disable_share_one(const char *sharename)
NULL,
};
- if (libzfs_run_process(argv[0], argv, 0) < 0)
+ if (libzfs_run_process(argv[0], argv, 0) != 0)
return (SA_SYSTEM_ERR);
else
return (SA_OK);