[haiku-commits] r35832 - haiku/trunk/src/bin/gzip

  • From: mattmadia@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 13 Mar 2010 00:05:37 +0100 (CET)

Author: mmadia
Date: 2010-03-13 00:05:37 +0100 (Sat, 13 Mar 2010)
New Revision: 35832
Changeset: http://dev.haiku-os.org/changeset/35832/haiku
Ticket: http://dev.haiku-os.org/ticket/5565

Modified:
   haiku/trunk/src/bin/gzip/gzexe
Log:
Remove the hard coded path to sed. Fixes #5565


Modified: haiku/trunk/src/bin/gzip/gzexe
===================================================================
--- haiku/trunk/src/bin/gzip/gzexe      2010-03-12 22:06:19 UTC (rev 35831)
+++ haiku/trunk/src/bin/gzip/gzexe      2010-03-12 23:05:37 UTC (rev 35832)
@@ -92,7 +92,7 @@
 skip=18
 if tail +$skip $0 | "/bin"/gzip -cd > /tmp/gztmp$$; then
   /bin/chmod 700 /tmp/gztmp$$
-  prog="`echo $0 | /bin/sed 's|^.*/||'`"
+  prog="`echo $0 | sed 's|^.*/||'`"
   if /bin/ln /tmp/gztmp$$ "/tmp/$prog" 2>/dev/null; then
     trap '/bin/rm -f /tmp/gztmp$$ "/tmp/$prog"; exit $res' 0
     (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null &


Other related posts: