aboutsummaryrefslogtreecommitdiff
path: root/libbb/recursive_action.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-12 07:35:12 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-12 07:35:12 +0000
commitcb44816ba32a3bbf598aab6d7cb1eabfd6619f5f (patch)
tree4459d66dd948b019c4a96730eea224f79520ad8c /libbb/recursive_action.c
parentd0ea52ee041ca4d8d00cc5212d54328689b1a3c4 (diff)
downloadbusybox-w32-cb44816ba32a3bbf598aab6d7cb1eabfd6619f5f.tar.gz
busybox-w32-cb44816ba32a3bbf598aab6d7cb1eabfd6619f5f.tar.bz2
busybox-w32-cb44816ba32a3bbf598aab6d7cb1eabfd6619f5f.zip
- add and use bb_opendir(), bb_xopendir().
text data bss dec hex filename 889445 9392 1035784 1934621 1d851d busybox.gcc-4.2.orig 889297 9392 1035784 1934473 1d8489 busybox.gcc-4.2 889009 9820 1037860 1936689 1d8d31 busybox.gcc-4.1.orig 888817 9820 1037860 1936497 1d8c71 busybox.gcc-4.1
Diffstat (limited to 'libbb/recursive_action.c')
-rw-r--r--libbb/recursive_action.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c
index d27629829..6b005e22d 100644
--- a/libbb/recursive_action.c
+++ b/libbb/recursive_action.c
@@ -4,19 +4,7 @@
4 * 4 *
5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */ 8 */
21 9
22#include <stdio.h> 10#include <stdio.h>
@@ -94,9 +82,8 @@ int recursive_action(const char *fileName,
94 } else if (status == SKIP) 82 } else if (status == SKIP)
95 return TRUE; 83 return TRUE;
96 } 84 }
97 dir = opendir(fileName); 85 dir = bb_opendir(fileName);
98 if (!dir) { 86 if (!dir) {
99 bb_perror_msg("%s", fileName);
100 return FALSE; 87 return FALSE;
101 } 88 }
102 status = TRUE; 89 status = TRUE;