aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

commit 800dbd0f92f994b8cf95f835eb940fc6ec0e9292
parent e20fc8a4c78c9c930701fe271879045adc2c5827
Author: xplshn <anto@xplshn.com.ar>
Date:   Fri, 27 Nov 2026 20:02:37 -0300

passwd: _GNU_SOURCE always, pw_update_file needs it; diskutil: _DEFAULT_SOURCE once

Diffstat:
Mshared/libutil/diskutil_linux.c | 2++
Mshared/libutil/passwd.c | 6+++---
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/shared/libutil/diskutil_linux.c b/shared/libutil/diskutil_linux.c @@ -1,5 +1,7 @@ /* see LICENSE file for copyright and license details */ +#ifndef _DEFAULT_SOURCE #define _DEFAULT_SOURCE /* realpath, sync */ +#endif #include "../diskutil.h" #include "../util.h" diff --git a/shared/libutil/passwd.c b/shared/libutil/passwd.c @@ -2,14 +2,14 @@ #ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 700 /* crypt in unistd.h */ #endif -#if FEATURE_PASSWD_EXT +/* pw_update_file reads and writes entries with fgetpwent and putpwent, + * which musl declares only under _GNU_SOURCE */ #ifndef _GNU_SOURCE -#define _GNU_SOURCE /* musl declares fgetpwent/putpwent only under it */ +#define _GNU_SOURCE #endif #ifndef _DEFAULT_SOURCE #define _DEFAULT_SOURCE #endif -#endif #include "../passwd.h" #include "../paths.h" #include "../text.h"