Files
hammer/recipes/change-PATH.patch
sergio fb6cb05aab base-system: promover 17 esenciales a canónicas + repo firmado (713→730)
Los 17 que construyen de la tanda base-system-1 pasan de recipes/incoming-clib a recipes/
canónicas y al índice firmado (dist/repo, artefacto local): bash git sudo doas util-linux
rsync sed tzdata dbus dhcpcd iproute2 iputils dosfstools e2fsprogs parted vim ca-certificates.
Sólo foot queda staged (stack Wayland, diferido). Cierra el grueso del hueco 'userland
foundational' hacia la distro completa: shell real + VCS + privilegios + red + disco + TLS.
2026-07-10 23:09:03 -04:00

20 lines
557 B
Diff

From: Jakub Jirutka <jakub@jirutka.cz>
Date: Tue, 28 Jun 2022 22:36:16 +0200
Subject: [PATCH] Change default PATH to the Alpine's default
Use the same PATH as in openssh, sudo and our /etc/profile.
--- a/doas.c
+++ b/doas.c
@@ -238,8 +238,8 @@
int
main(int argc, char **argv)
{
- const char *safepath = "/bin:/sbin:/usr/bin:/usr/sbin:"
- "/usr/local/bin:/usr/local/sbin";
+ const char *safepath = "/usr/local/sbin:/usr/local/bin:"
+ "/usr/sbin:/usr/bin:/sbin:/bin";
const char *confpath = NULL;
char *shargv[] = { NULL, NULL };
char *sh;