-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module/Makefile.in: don't run xargs if empty #9418
Conversation
If stdin if empty - don't run xargs command, otherwise we can get `cp: missing file operand` error. Signed-off-by: George Melikov <mail@gmelikov.ru>
Hmm, looks like now we have some problems with |
Codecov Report
@@ Coverage Diff @@
## master #9418 +/- ##
==========================================
+ Coverage 78.95% 79.02% +0.07%
==========================================
Files 410 410
Lines 122499 122499
==========================================
+ Hits 96723 96809 +86
+ Misses 25776 25690 -86
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be fine for FreeBSD.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one portability question.
I don't think I've seen this. What's the error? |
Looks like now each thread tries to do the same thing with |
@gmelikov the |
If stdin if empty - don't run xargs command, otherwise we can get `cp: missing file operand` error. Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Melikov <mail@gmelikov.ru> Closes openzfs#9418
If stdin if empty - don't run xargs command, otherwise we can get `cp: missing file operand` error. Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Melikov <mail@gmelikov.ru> Closes openzfs#9418
If stdin if empty - don't run xargs command, otherwise we can get `cp: missing file operand` error. Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Melikov <mail@gmelikov.ru> Closes #9418
Motivation and Context
If stdin is empty - don't run xargs command,
otherwise we can get
cp: missing file operand
error (reproducer triggers on
spl
dir).How Has This Been Tested?
Reproducer - 'make -j 2 pkg-utils deb-kmod'
Don't reproduce after this patch.
Types of changes
Checklist:
Signed-off-by
.