Fixes rm -r (XCC)
[akaros.git] / tools / patches / busybox / busybox-rm-rewinddir.patch
1 --- a/libbb/remove_file.c       2014-06-18 11:44:05.962239038 -0700
2 +++ b/libbb/remove_file.c       2014-06-18 11:44:11.331956241 -0700
3 @@ -59,6 +59,7 @@
4                                 continue;
5                         if (remove_file(new_path, flags) < 0)
6                                 status = -1;
7 +                       rewinddir(dp);
8                         free(new_path);
9                 }
10