diff options
Diffstat (limited to 'src/login/sd-login.c')
-rw-r--r-- | src/login/sd-login.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/login/sd-login.c b/src/login/sd-login.c index 82fe2ce3e3..45e3bb8dcd 100644 --- a/src/login/sd-login.c +++ b/src/login/sd-login.c @@ -651,11 +651,12 @@ _public_ int sd_get_uids(uid_t **users) { return -errno; for (;;) { - struct dirent buffer, *de; + struct dirent *de; + union dirent_storage buf; int k; uid_t uid; - k = readdir_r(d, &buffer, &de); + k = readdir_r(d, &buf.de, &de); if (k != 0) { r = -k; goto finish; |