Commit 0fc0d057 by S.Çağlar Onur Committed by Serge Hallyn

silence "sh: 1: zfs: not found" errors on systems without ZFS

parent a8428dfa
......@@ -440,7 +440,7 @@ static int zfs_list_entry(const char *path, char *output)
FILE *f;
int found=0;
if ((f = popen("zfs list", "r")) == NULL) {
if ((f = popen("zfs list 2> /dev/null", "r")) == NULL) {
SYSERROR("popen failed");
return 0;
}
......
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