diff options
author | Karel Klic <kklic@redhat.com> | 2010-02-04 10:13:31 +0100 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2010-02-04 10:13:31 +0100 |
commit | 148e19105577984a7fa3b6da97ec9ba565a9cfa7 (patch) | |
tree | c1eb54d7aae269e1e6026cde1f406e9159577c02 /src | |
parent | 823b800110c01df95085a7d19e815ed441611dd1 (diff) | |
download | abrt-148e19105577984a7fa3b6da97ec9ba565a9cfa7.tar.gz abrt-148e19105577984a7fa3b6da97ec9ba565a9cfa7.tar.xz abrt-148e19105577984a7fa3b6da97ec9ba565a9cfa7.zip |
comments
Diffstat (limited to 'src')
-rw-r--r-- | src/Daemon/Daemon.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp index 5bcbe232..185ff7f0 100644 --- a/src/Daemon/Daemon.cpp +++ b/src/Daemon/Daemon.cpp @@ -294,7 +294,7 @@ static void FindNewDumps(const char* pPath) struct stat stats; DIR *dp; vector_string_t dirs; - // get potential unsaved debugdumps + /* Get all debugdump directories in the pPath directory. */ dp = opendir(pPath); if (dp == NULL) { @@ -305,7 +305,7 @@ static void FindNewDumps(const char* pPath) while ((ep = readdir(dp))) { if (dot_or_dotdot(ep->d_name)) - continue; + continue; /* skip "." and ".." */ std::string dname = ssprintf("%s/%s", pPath, ep->d_name); if (lstat(dname.c_str(), &stats) == 0) { @@ -317,6 +317,7 @@ static void FindNewDumps(const char* pPath) } closedir(dp); + // get potential unsaved debugdumps vector_string_t::iterator itt = dirs.begin(); for (; itt != dirs.end(); ++itt) { |