From 0fc0d057c34f3ee10eeb87e3f11405aa79c3b4df Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Tue, 30 Apr 2013 14:55:03 -0400 Subject: [PATCH] silence "sh: 1: zfs: not found" errors on systems without ZFS MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: S.Çağlar Onur Signed-off-by: Serge E. Hallyn --- src/lxc/bdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/bdev.c b/src/lxc/bdev.c index a3577a207..1de302f17 100644 --- a/src/lxc/bdev.c +++ b/src/lxc/bdev.c @@ -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; } -- 2.47.2