diff options
| author | Stef Walter <stef@memberwebs.com> | 2006-12-09 02:45:19 +0000 | 
|---|---|---|
| committer | Stef Walter <stef@memberwebs.com> | 2006-12-09 02:45:19 +0000 | 
| commit | 62fdbd8546739f5a538a2404b58c7055e17da493 (patch) | |
| tree | 881a3bbace7e71c615d33c1d22055d3bbd3a1e42 /common | |
| parent | 1bf6e24cc75efec4418c0096a453628ef60c442b (diff) | |
Make things a little clearer
Diffstat (limited to 'common')
| -rw-r--r-- | common/config-parser.c | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/common/config-parser.c b/common/config-parser.c index c59d071..f73d488 100644 --- a/common/config-parser.c +++ b/common/config-parser.c @@ -243,7 +243,7 @@ parse_dir_internal(const char* subdir, void* data)  {      char path[MAXPATHLEN];      struct dirent* dire; -    struct stat buf; +    struct stat st;      char* memory;      DIR* dir;      int r; @@ -272,15 +272,15 @@ parse_dir_internal(const char* subdir, void* data)          /* for non BSD compliant filesystem: stat() only if dirent->d_type is unknown */          if(dire->d_type == DT_UNKNOWN)          { -            if(stat(path, &buf) < 0) +            if(stat(path, &st) < 0)              { -                errmsg(NULL, data, "couldn't stat directory: %s", path); +                errmsg(NULL, data, "couldn't stat path: %s", path);                  return -1;              } -            if(S_ISREG(buf.st_mode)) +            if(S_ISREG(st.st_mode))                  dire->d_type = DT_REG; -            else if(S_ISDIR(buf.st_mode)) +            else if(S_ISDIR(st.st_mode))                  dire->d_type = DT_DIR;              else                  continue; | 
