Unix Technical Forum

gzexe patch

This is a discussion on gzexe patch within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Compressing /usr/bin/* whacks /bin/chmod because of /usr/bin/chflags. This patch makes gzexe skip symlinks. Regards, Andrew Dalgleish Index: gzexe ================================================== ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 08:21 AM
Andrew Dalgleish
 
Posts: n/a
Default gzexe patch

Compressing /usr/bin/* whacks /bin/chmod because of /usr/bin/chflags.
This patch makes gzexe skip symlinks.

Regards,
Andrew Dalgleish
Index: gzexe
================================================== =================
RCS file: /cvs/OpenBSD/src/usr.bin/compress/gzexe,v
retrieving revision 1.4
diff -u -w -r1.4 gzexe
--- gzexe 30 Sep 2005 06:50:44 -0000 1.4
+++ gzexe 27 Feb 2006 21:55:17 -0000
@@ -87,6 +87,11 @@
return 1
fi

+ if test -h "$1"; then
+ echo "$prog: cannot compress symlink $1"
+ return 1
+ fi
+
case `basename "$1"` in
sh | mktemp | rm | echo | tail | gzip | chmod | basename)
echo "$prog: cannot compress $1, I depend on it"

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:41 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com