2
0
mirror of git://github.com/lxc/lxc synced 2025-08-29 20:49:51 +00:00

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

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Signed-off-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
S.Çağlar Onur 2013-04-30 14:55:03 -04:00 committed by Serge Hallyn
parent a8428dfa2c
commit 0fc0d057c3

View File

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