[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mandb wrapper scripts



On Tue, Feb 08, 2000 at 05:01:30AM -0900, Ethan Benson wrote:
> 
> this works..  really this time it does!
> 
> its obviously too late...

It's never too late ...


#!/bin/sh -e
pgm=`basename $0`
edir=/usr/lib/man-db
cmd="${edir}/${pgm} ${1+$@}"
[ `id -u` = 0 ] || exec ${cmd}
su nobody -c "/bin/true" && exec su nobody -c "$cmd"
su -s /bin/true 2>/dev/null && exec su -s /bin/sh nobody -c "$cmd"
exec su man -c "$cmd"


If nobody else conplains loudly I will do -71 tomorrow (let's the world
go one round at least :-)
meanwhile, someone who tests this on hurd?
with or without shell for nobody!

fab
-- 
| fab@pukki.ntc.nokia.com     fpolacco@prosa.it    fpolacco@debian.org
| 6F7267F5 fingerprint 57 16 C4 ED C9 86 40 7B 1A 69 A1 66 EC FB D2 5E
| fabrizio.polacco@nokia.com                  gsm: +358 (0)40 707 2468


Reply to: