Mailing List Archive

Patch to precompile to not hardcode 'chown nobody'
Hi, It seems that precompile hardcodes or picks up 'nobody' from the
default Apache config. I would like to use the values from
--server-uid and --server-gid to chown the prefix/backhand
directory. This allows me to setup/install mod_backhand without having
to become root

Also precompile doesn't chmod 755 ./configure in the Apache dir after
it finishes. The enclosed patch seems to do the right thing

Patch against mod_backhand 1.20

Regards, Yusuf

--
Yusuf Goolamabbas
yusufg@outblaze.com

--- precompile.orig Mon Nov 26 14:40:34 2001
+++ precompile Mon Nov 26 14:52:03 2001
@@ -46,6 +46,7 @@
echo ' module_so=yes'; \
echo ' fi'; \
tail -`echo "$FC $FO - p" | dc` "$CONF.bak") > $CONF
+ chmod 755 $CONF
rm "$CONF".bak
else
echo " already there!? (you do this already?)"
@@ -195,7 +196,8 @@
mv $TMPL "$TMPL".bak
(head -$HC "$TMPL".bak;\
echo " \$(MKDIR) \$(root)\$(prefix)/backhand";\
- echo " chown $APUSER \$(root)\$(prefix)/backhand";\
+ echo " chown \$(conf_user) \$(root)\$(prefix)/backhand";\
+ echo " chgrp \$(conf_group) \$(root)\$(prefix)/backhand";\
echo " chmod 700 \$(root)\$(prefix)/backhand";\
tail -`echo "$FC $HC - p" | dc` "$TMPL.bak") > $TMPL
rm "$TMPL".bak
Patch to precompile to not hardcode 'chown nobody' [ In reply to ]
On Monday, November 26, 2001, at 02:29 AM, Yusuf Goolamabbas wrote:

> Hi, It seems that precompile hardcodes or picks up 'nobody' from the
> default Apache config. I would like to use the values from
> --server-uid and --server-gid to chown the prefix/backhand
> directory. This allows me to setup/install mod_backhand without having
> to become root

Excellent. It has been committed to CVS.

> Also precompile doesn't chmod 755 ./configure in the Apache dir after
> it finishes. The enclosed patch seems to do the right thing

This was already fix in CVS.

--
Theo Schlossnagle
1024D/82844984/95FD 30F1 489E 4613 F22E 491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7