[med-svn] [aghermann] 32/85: only select regular files when scanning for profiles

andrei zavada hmmr-guest at alioth.debian.org
Thu Sep 26 23:46:27 UTC 2013


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch master
in repository aghermann.

commit 7423f23049fc69ad5f7aa9543a72eca4f848ac23
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Sun Sep 15 02:21:12 2013 +0300

    only select regular files when scanning for profiles
---
 upstream/src/aghermann/expdesign/dirlevel.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/upstream/src/aghermann/expdesign/dirlevel.cc b/upstream/src/aghermann/expdesign/dirlevel.cc
index c6b44e2..fd67777 100644
--- a/upstream/src/aghermann/expdesign/dirlevel.cc
+++ b/upstream/src/aghermann/expdesign/dirlevel.cc
@@ -24,9 +24,10 @@ using namespace agh;
 
 
 int
+agh::
 simple_scandir_filter( const struct dirent *e)
 {
-        return strcmp( e->d_name, ".") && strcmp( e->d_name, "..");
+        return e->d_type == DT_REG;
 }
 
 

-- 
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list