Commit | Line | Data |
---|---|---|
df3c6831 FF |
1 | diff -u -r ../attr-2.4.47/libmisc/walk_tree.c ./libmisc/walk_tree.c |
2 | --- ../attr-2.4.47/libmisc/walk_tree.c 2013-05-19 00:53:54.000000000 -0400 | |
3 | +++ ./libmisc/walk_tree.c 2015-12-13 14:47:30.178955536 -0500 | |
4 | @@ -122,7 +122,11 @@ | |
5 | close_another_dir: | |
6 | /* Close the topmost directory handle still open. */ | |
7 | closed = closed->prev; | |
8 | +#ifdef __ANDROID__ | |
9 | + closed->pos = -1; | |
10 | +#else | |
11 | closed->pos = telldir(closed->stream); | |
12 | +#endif | |
13 | closedir(closed->stream); | |
14 | closed->stream = NULL; | |
15 | num_dir_handles++; | |
16 | @@ -188,7 +192,9 @@ | |
17 | if (!dir.stream) | |
18 | return err + func(path, NULL, flags | | |
19 | WALK_TREE_FAILED, arg); | |
20 | +#ifndef __ANDROID__ | |
21 | seekdir(dir.stream, dir.pos); | |
22 | +#endif | |
23 | ||
24 | closed = closed->next; | |
25 | num_dir_handles--; |