svn commit: r406842 - head/Mk/Scripts
Alexey Dokuchaev
danfe at FreeBSD.org
Thu Jan 21 15:31:25 UTC 2016
On Thu, Jan 21, 2016 at 10:25:56AM +0000, Raphael Kubo da Costa wrote:
> New Revision: 406842
> URL: https://svnweb.freebsd.org/changeset/ports/406842
>
> Log:
> smart_makepatch: Quote PATCH_WRKSRC when regenerating patches.
>
> [...]
> @@ -184,9 +184,9 @@ regenerate_patches() {
> local OUT
> local ORIG
> local new_list
> - new_list=$(cd ${PATCH_WRKSRC} && \
> + new_list=$(cd "${PATCH_WRKSRC}" && \
> find -s * -type f -name '*.orig' 2>/dev/null)
> - (cd ${PATCH_WRKSRC} && for F in ${new_list}; do
> + (cd "${PATCH_WRKSRC}" && for F in ${new_list}; do
I've sent John a slighly more complete patch which quotes all five
invocations of "cd". You might consider quoting remaining tree as well
(file $filesdir is less likely to contain spaces than $patch_wrksrc, it
still might).
./danfe
More information about the svn-ports-head
mailing list