mirror of
git://github.com/lxc/lxc
synced 2025-08-29 13:12:15 +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:
parent
a8428dfa2c
commit
0fc0d057c3
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user