Re: patching binaries at install time without breaking rpm -V?

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

 



On Wednesday, 21 December 2005, at 12:02:18 (-0800),
dkegel wrote:

> The idiom
> dn0=`dirname $0`
> SOURCEDIR=`cd $dn0; pwd`
> seems to reliably do it for shell scripts.

First off, we're talking about binaries, not shell scripts.  That
means C.

Second, if you read what I wrote, you should observe that getting the
directory name from argv[0] (for which the shell equivalent is
`dirname $0`) is not an option.  But thanks for playing.  :-)

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <mej@xxxxxxxxx>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "Would the congregation please note that the bowl at the back of the
  church labeled 'For the Sick' is for monetary donations only."
               -- Churchdown Parish Magazine, Gloucestershire, England

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux