mirror of
https://github.com/systemd/systemd.git
synced 2025-01-30 01:47:42 +03:00
delta: replace readdir_r with readdir
This commit is contained in:
parent
d78096b343
commit
6887ec4f00
@ -280,13 +280,13 @@ static int enumerate_dir(Hashmap *top, Hashmap *bottom, Hashmap *drops, const ch
|
||||
|
||||
for (;;) {
|
||||
struct dirent *de;
|
||||
union dirent_storage buf;
|
||||
int k;
|
||||
char *p;
|
||||
|
||||
k = readdir_r(d, &buf.de, &de);
|
||||
if (k != 0)
|
||||
return -k;
|
||||
errno = 0;
|
||||
de = readdir(d);
|
||||
if (!de && errno != 0)
|
||||
return -errno;
|
||||
|
||||
if (!de)
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user