Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ra!ukma!dftsrv!mimsy!nocusuhs!nmrdc1!minixug!drinkel!miquels From: miquels@drinkel.nl.mugnet.org (Miquel van Smoorenburg) Newsgroups: comp.os.minix Subject: Re: Advanced MINIX (and a fix for strip.c) Message-ID: <910428541@drinkel.nl.mugnet.org> Date: 28 Apr 91 12:58:00 GMT References: <910415203@bbltv.nl.mugnet.org> Organization: MUGNET - MINIX Hobbyist International Network Lines: 50 In article <910415203@bbltv.nl.mugnet.org>, edvard@bbltv.nl.mugnet.org (Edvard Tuinder) wrote: > Hello *, > > Well, I have justed installed my copy of NLMUG Advanced MINIX 1.5.10D > and it's working great. It really is much better then my old (?) 1.5.10. I have 1.5.10E .... ;-( > > But while wading through all the program's I noticed that a lot of > them were having a symbol table and since I'm short in disk space > I did a strip * in /usr/bin. ai... > I had better not... This actually ruins all setup ownership of the stripped > programs. Most of the programs were owned by bin. This was changed into > root whithout notice (also the SETUID programs....) > One other thing was stripping linked files. This resulted in mutiple I know the problem. Below is my solution: a shell script called sstrip. --------- #!/bin/sh # # sstrip: retain links. # if [ $# = 0 ] then echo Usage: sstrip files exit 1 fi for i in $* do echo $i ln $i $i.l echo stripping... strip $i.l echo copying... cp $i.l $i echo remove backup rm -f $i.l done ------- Simple, eh? Miquel. +----------------------------------------------------------------------+ | Miquel van Smoorenburg, | It's a 106 miles to Chicago. | | Baljuwstraat 20 | We've got a full tank of gas, | | 2461SL | Half a pack of cigarettes, | | Langeraar | It's dark, | | miquels@drinkel.nl.mugnet.org | And we're wearing sunglasses..... | | | Hit it! | +----------------------------------------------------------------------+ | The Brain - Direct Memory Access... | +----------------------------------------------------------------------+