mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-26 18:04:22 +03:00
linux: libshare: smb: don't swallow net(1) errors
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13191 Closes #13470
This commit is contained in:
parent
2b4f2fc93c
commit
e02d84d3a5
@ -248,7 +248,7 @@ smb_enable_share_one(const char *sharename, const char *sharepath)
|
|||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (libzfs_run_process(argv[0], argv, 0) < 0)
|
if (libzfs_run_process(argv[0], argv, 0) != 0)
|
||||||
return (SA_SYSTEM_ERR);
|
return (SA_SYSTEM_ERR);
|
||||||
|
|
||||||
/* Reload the share file */
|
/* Reload the share file */
|
||||||
@ -297,7 +297,7 @@ smb_disable_share_one(const char *sharename)
|
|||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (libzfs_run_process(argv[0], argv, 0) < 0)
|
if (libzfs_run_process(argv[0], argv, 0) != 0)
|
||||||
return (SA_SYSTEM_ERR);
|
return (SA_SYSTEM_ERR);
|
||||||
else
|
else
|
||||||
return (SA_OK);
|
return (SA_OK);
|
||||||
|
Loading…
Reference in New Issue
Block a user