From 7b50929851b055deb96fcba919791d5699563e5d Mon Sep 17 00:00:00 2001 From: George Melikov Date: Tue, 8 Oct 2019 20:10:23 +0300 Subject: [PATCH] module/Makefile.in: don't run xargs if empty If stdin if empty - don't run xargs command, otherwise we can get `cp: missing file operand` error. Reviewed-by: Ryan Moeller Reviewed-by: Brian Behlendorf Signed-off-by: George Melikov Closes #9418 --- module/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Makefile.in b/module/Makefile.in index 194133864..24af81aa7 100644 --- a/module/Makefile.in +++ b/module/Makefile.in @@ -115,5 +115,5 @@ distdir: list='$(obj-m)'; for objdir in $$list; do \ (cd @top_srcdir@/module && find $$objdir \ -name '*.c' -o -name '*.h' -o -name '*.S' | \ - xargs cp --parents -t @abs_top_builddir@/module/$$distdir); \ + xargs -r cp --parents -t @abs_top_builddir@/module/$$distdir); \ done -- 2.40.0