dietlibc/dietlibc-0.31-defpath.patch

26 lines
657 B
Diff

From 66528a176d332bb8de4ddf324754089e59139424 Mon Sep 17 00:00:00 2001
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Date: Sat, 19 Apr 2008 18:00:19 +0200
Subject: [PATCH] Security fix for proper $PATH
Removed '.' from the default $PATH.
---
include/paths.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/paths.h b/include/paths.h
index 553b4fa..9bf216f 100644
--- a/include/paths.h
+++ b/include/paths.h
@@ -2,7 +2,7 @@
#define _PATHS_H
#define _PATH_BSHELL "/bin/sh"
-#define _PATH_DEFPATH "/bin:/usr/bin:"
+#define _PATH_DEFPATH "/bin:/usr/bin"
#define _PATH_DEVNULL "/dev/null"
--
1.5.4.5