aboutsummaryrefslogtreecommitdiff
path: root/miscutils/devfsd.c
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-04-13 23:59:52 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-04-13 23:59:52 +0000
commit16abcd90aefae8bdb9f7d80a555982dba6ca59b5 (patch)
treeb7e23fd3c844849d188813323076c93105a57d4d /miscutils/devfsd.c
parent334fa9bcb50df9a03288be252096750dcec14404 (diff)
downloadbusybox-16abcd90aefae8bdb9f7d80a555982dba6ca59b5.tar.gz
busybox-16abcd90aefae8bdb9f7d80a555982dba6ca59b5.tar.bz2
teach find_root_device to deal with /dev/ subdirs
(by "Kirill K. Smirnov" <lich@math.spbu.ru>)
Diffstat (limited to 'miscutils/devfsd.c')
-rw-r--r--miscutils/devfsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c
index 0069b280e..d1a5163d2 100644
--- a/miscutils/devfsd.c
+++ b/miscutils/devfsd.c
@@ -1369,7 +1369,7 @@ static void dir_operation(int type, const char * dir_name, int var, unsigned lon
while ( (de = readdir (dp) ) != NULL )
{
- if(de->d_name && *de->d_name == '.' && (!de->d_name[1] || (de->d_name[1] == '.' && !de->d_name[2])))
+ if(de->d_name && DOT_OR_DOTDOT(de->d_name))
continue;
snprintf (path, sizeof (path), "%s/%s", dir_name, de->d_name);
debug_msg_logger(LOG_ERR, "%s: %s", __FUNCTION__, path);