aruu

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

commit 7fd6abd39870f3f4aba4d9ffea2e0d0f5006918a
parent af0aa04145c13eba6f8ca23bc66dda51c0202bc2
Author: xplshn <anto@xplshn.com.ar>
Date:   Fri, 20 Nov 2026 23:28:18 -0300

mount: no helper for a type means mount(2), quietly

Diffstat:
Mcmd/linux/mount.c | 13++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/cmd/linux/mount.c b/cmd/linux/mount.c @@ -120,6 +120,7 @@ mounthelper(const char *fsname, const char *dir, const char *fstype) pid_t pid; char eprog[PATH_MAX]; char const *eargv[10]; + char *found; int status, i; if (!fstype || strcmp(fstype, "auto") == 0) @@ -129,6 +130,13 @@ mounthelper(const char *fsname, const char *dir, const char *fstype) if (strcmp(argv0, eprog) == 0) return 1; + /* no helper for this type: mount(2) does it, and nothing is printed */ + if (!wexec_is_builtin(eprog)) { + if (!(found = wwhich(eprog))) + return 1; + free(found); + } + pid = fork(); switch (pid) { case -1: @@ -152,11 +160,6 @@ mounthelper(const char *fsname, const char *dir, const char *fstype) eargv[i] = NULL; wexecvp_self(eprog, (char *const *)eargv); - if (errno == ENOENT) - _exit(1); - weprintf("wexecvp:"); - _exit(1); - break; default: if (waitpid(pid, &status, 0) < 0) { weprintf("waitpid:");