diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-22 01:48:07 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-22 01:48:07 +0000 |
commit | 2230e04b24d58710b30d25f032c1996a143ba261 (patch) | |
tree | b8cb8d939032c0806d62161b01e5836cb808dc3f /findutils/xargs.c | |
parent | 3c7e7e11b41d4a421bcf42fd1bf72a537e051d4a (diff) | |
download | busybox-w32-2230e04b24d58710b30d25f032c1996a143ba261.tar.gz busybox-w32-2230e04b24d58710b30d25f032c1996a143ba261.tar.bz2 busybox-w32-2230e04b24d58710b30d25f032c1996a143ba261.zip |
Use busybox error handling functions wherever possible.
git-svn-id: svn://busybox.net/trunk/busybox@1489 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'findutils/xargs.c')
-rw-r--r-- | findutils/xargs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c index c5f7b208c..ddfbe9230 100644 --- a/findutils/xargs.c +++ b/findutils/xargs.c | |||
@@ -81,10 +81,8 @@ int xargs_main(int argc, char **argv) | |||
81 | strcat(execstr, cmd_to_be_executed); | 81 | strcat(execstr, cmd_to_be_executed); |
82 | strcat(execstr, file_to_act_on); | 82 | strcat(execstr, file_to_act_on); |
83 | cmd_output = popen(execstr, "r"); | 83 | cmd_output = popen(execstr, "r"); |
84 | if (cmd_output == NULL) { | 84 | if (cmd_output == NULL) |
85 | perror("popen"); | 85 | perror_msg_and_die("popen"); |
86 | exit(1); | ||
87 | } | ||
88 | 86 | ||
89 | /* harvest the output */ | 87 | /* harvest the output */ |
90 | while ((output_line = get_line_from_file(cmd_output)) != NULL) { | 88 | while ((output_line = get_line_from_file(cmd_output)) != NULL) { |