diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-04 16:36:01 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-04 16:36:01 +0100 |
| commit | b634e1a482f6871bb4e128f3bc23456f09f85547 (patch) | |
| tree | 9f26e4db8ff0033d3ba24fe4190b90d7b4889564 /src/Daemon/Daemon.cpp | |
| parent | c45047c5414d2b24b6d1182179509a1efc55846e (diff) | |
| parent | f42baa45204bfb1df7219242d7ebcc102ad494be (diff) | |
Merge branch 'master' into rhel6
Diffstat (limited to 'src/Daemon/Daemon.cpp')
| -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 5bcbe23..185ff7f 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) { |
