aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox/bbsuid.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-03-29 17:27:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-03-29 17:27:09 +0000
commita3bc85c3cd190580d9a95526a4e89b6cdda0a9e0 (patch)
tree96a9f0d6e1eecddc68829d3eeb87804586a551c4 /main/busybox/bbsuid.c
parent52b8efc514e679e927a690dfb6389097e0a273cd (diff)
downloadaports-a3bc85c3cd190580d9a95526a4e89b6cdda0a9e0.tar.gz
aports-a3bc85c3cd190580d9a95526a4e89b6cdda0a9e0.tar.bz2
aports-a3bc85c3cd190580d9a95526a4e89b6cdda0a9e0.tar.xz
main/busybox: fix ping without root permissions
using SOCK_DGRAM requested by docker inc.
Diffstat (limited to 'main/busybox/bbsuid.c')
-rw-r--r--main/busybox/bbsuid.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/main/busybox/bbsuid.c b/main/busybox/bbsuid.c
index f015163e0e..3786312f5c 100644
--- a/main/busybox/bbsuid.c
+++ b/main/busybox/bbsuid.c
@@ -21,8 +21,6 @@
const static char * applets[] = {
"/bin/mount",
- "/bin/ping",
- "/bin/ping6",
"/bin/umount",
"/usr/bin/crontab",
"/usr/bin/passwd",
@@ -92,7 +90,7 @@ static int install_links(void)
int main(int argc, char **argv)
{
const char *app = applet_from_path(argv[0]);
-
+
if (strcmp(app, "bbsuid") == 0) {
if (argc == 2 && strcmp(argv[1], "--install") == 0)
return install_links();
@@ -101,7 +99,7 @@ int main(int argc, char **argv)
if (is_valid_applet(app))
return exec_busybox(app, argc, argv);
-
+
errx(1, "%s is not a valid applet", app);
return 1;
}