index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aurelien Foret <aurelien@archlinux.org> | 2006-01-07 09:42:48 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-01-07 09:42:48 +0000 |
commit | f3a4197e349ec7441f2b4dfe6e3010bbfe400164 (patch) | |
tree | 88352537a1dae2a182ea5cc792c25b4fd4cdb45e /src/pacman/util.c | |
parent | 6c3657b7022c7873fca38b30796e7659b7580b34 (diff) |
-rw-r--r-- | src/pacman/util.c | 2 |
diff --git a/src/pacman/util.c b/src/pacman/util.c index dd8dddab..a279e004 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -79,7 +79,6 @@ int rmrf(char *path) int errflag = 0; struct dirent *dp; DIR *dirp; - char name[PATH_MAX]; if(!unlink(path)) { return(0); @@ -102,6 +101,7 @@ int rmrf(char *path) } for(dp = readdir(dirp); dp != NULL; dp = readdir(dirp)) { if(dp->d_ino) { + char name[PATH_MAX]; sprintf(name, "%s/%s", path, dp->d_name); if(strcmp(dp->d_name, "..") && strcmp(dp->d_name, ".")) { errflag += rmrf(name); |