#12373: Can't "su" to non-superuser : Permission denied
-------------------------+----------------------------
Reporter: ttcoder | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: R1/beta1
Component: - General | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------+----------------------------
Comment (by ttcoder):
So here's the two-liner change we need, in case someone wants to make life
easier for us without having to re-read the whole ticket history above ;-)
{{{
/Haiku3/develop_hrev/haiku/src/system/runtime_loader> git diff .
diff --git a/src/system/runtime_loader/Jamfile
b/src/system/runtime_loader/Jamfile
index 3a19cf1..0699fe8 100644
--- a/src/system/runtime_loader/Jamfile
+++ b/src/system/runtime_loader/Jamfile
@@ -95,6 +95,9 @@ local sources =
Objects $(sources) ;
+MODE on runtime_loader = $(EXEMODE) ;
+Chmod runtime_loader ;
+
Ld runtime_loader :
[ FGristFiles $(sources:S=$(SUFOBJ)) ]
libruntime_loader.a
}}}
(i.e. apples to apples with [http://cgit.haiku-
os.org/haiku/tree/build/jam/OverriddenJamRules#n35 this])
(I checked with `jam -n` and it does produce a good-looking output: `chmod
"755"
../../../generated/objects/haiku/x86_gcc2/release/system/runtime_loader/runtime_loader"
` )
Alternatively, there was talk above of fixing the umask on the build-bots,
or going with an overhaul of the permissions enforcement. Would not hurt
to have a quick temporary solution while waiting for those, though
--
Ticket URL: <https://dev.haiku-os.org/ticket/12373#comment:16>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.