index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2010-06-19 18:55:08 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2010-06-21 01:04:58 +1000 |
commit | 59c47aaf529df02ec1577fe727c3c84d13592666 (patch) | |
tree | 63049bcc89e7058376ce0607ddee116b2f819ddc /lib/libalpm/util.c | |
parent | d7dccd541962f0dd8bf323ae11633e595bfb4922 (diff) |
-rw-r--r-- | lib/libalpm/util.c | 2 |
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 32eaa442..b033e0a3 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -398,7 +398,7 @@ int _alpm_rmrf(const char *path) for(dp = readdir(dirp); dp != NULL; dp = readdir(dirp)) { if(dp->d_ino) { sprintf(name, "%s/%s", path, dp->d_name); - if(strcmp(dp->d_name, "..") && strcmp(dp->d_name, ".")) { + if(strcmp(dp->d_name, "..") != 0 && strcmp(dp->d_name, ".") != 0) { errflag += _alpm_rmrf(name); } } |