NetBSD-Bugs archive

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

Re: install/50846: etcupdate -a doesn't handle destdir properly



The following reply was made to PR install/50846; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: install/50846: etcupdate -a doesn't handle destdir properly
Date: Thu, 25 Feb 2016 12:22:20 +0700

     Date:        Wed, 24 Feb 2016 21:45:00 +0000 (UTC)
     From:        uwe%NetBSD.org@localhost
     Message-ID:  <20160224214500.C41BF7ABEE%mollari.NetBSD.org@localhost>
 
   | The problem is that SUM1 is computed for the wrong file if -d destdir
   | is also specified.  Unfortunately, it can't be fixed by just using
   | 
   |   md5 "${DESTDIR}${1}"
 
 Maybe:
 	SUM1=$( cd "${DESTDIR:-.}" && md5 "${1}" )
 
 [Untested.  It shouldn't really need the extra set of enclosing quotes, but ...]
 
 kre
 


Home | Main Index | Thread Index | Old Index