From 80d0ab493a955ff1c60641ba9a309e8b690e3fbb Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 19 Apr 2008 00:07:12 +0000 Subject: [PATCH] * Haiku has grown a few features in the meantime, so enable them in coreutils' config.h. * "su" needs to have set-uid permission. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25039 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/coreutils/lib/config.h | 8 ++++---- src/bin/coreutils/src/Jamfile | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/bin/coreutils/lib/config.h b/src/bin/coreutils/lib/config.h index a14d6075e8..8eaa346ec6 100644 --- a/src/bin/coreutils/lib/config.h +++ b/src/bin/coreutils/lib/config.h @@ -638,10 +638,10 @@ #define HAVE_GETOPT_LONG_ONLY 1 /* Define to 1 if you have the `getpagesize' function. */ -/* #undef HAVE_GETPAGESIZE */ +#define HAVE_GETPAGESIZE 1 /* Define to 1 if you have the `getspnam' function. */ -/* #undef HAVE_GETSPNAM */ +#define HAVE_GETSPNAM 1 /* Define to 1 if you have the `getsysinfo' function. */ /* #undef HAVE_GETSYSINFO */ @@ -937,7 +937,7 @@ /* #undef HAVE_SETTIMEOFDAY */ /* Define to 1 if you have the header file. */ -/* #undef HAVE_SHADOW_H */ +#define HAVE_SHADOW_H 1 /* Define to 1 if you have the `sig2str' function. */ /* #undef HAVE_SIG2STR */ @@ -1042,7 +1042,7 @@ /* #undef HAVE_STRUCT_NLIST_N_UN_N_NAME */ /* Define to 1 if `sp_pwdp' is member of `struct spwd'. */ -/* #undef HAVE_STRUCT_SPWD_SP_PWDP */ +#define HAVE_STRUCT_SPWD_SP_PWDP 1 /* Define to 1 if `f_fstypename' is member of `struct statfs'. */ /* #undef HAVE_STRUCT_STATFS_F_FSTYPENAME */ diff --git a/src/bin/coreutils/src/Jamfile b/src/bin/coreutils/src/Jamfile index e0cb81be6c..9b72be1851 100644 --- a/src/bin/coreutils/src/Jamfile +++ b/src/bin/coreutils/src/Jamfile @@ -77,6 +77,10 @@ StdBinCommands yes.c : libfetish.a : $(coreutils_rsrc) ; +# set set-uid bit on su +MODE on su = 04755 ; + + # commands requiring select, uname, etc. StdBinCommands