diff options
author | Sunil Nimmagadda <sunil@cvs.openbsd.org> | 2019-02-18 11:01:49 +0000 |
---|---|---|
committer | Sunil Nimmagadda <sunil@cvs.openbsd.org> | 2019-02-18 11:01:49 +0000 |
commit | 2e8c0699e661decc7fad6370c560f880a3839521 (patch) | |
tree | 4fe60cb467d694ca1b592b00a26d796904d01dba /usr.bin/ctfconv | |
parent | cf15e71e2915c7cbb424a09fd1b27fecb9677e3d (diff) |
Fix in-place stripping by using correct form of parameter substitution.
Ok mpi@
Diffstat (limited to 'usr.bin/ctfconv')
-rw-r--r--[-rwxr-xr-x] | usr.bin/ctfconv/ctfstrip | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ctfconv/ctfstrip b/usr.bin/ctfconv/ctfstrip index 6fa3cdd15fa..1dd7449de5b 100755..100644 --- a/usr.bin/ctfconv/ctfstrip +++ b/usr.bin/ctfconv/ctfstrip @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: ctfstrip,v 1.8 2017/08/15 15:48:10 jasper Exp $ +# $OpenBSD: ctfstrip,v 1.9 2019/02/18 11:01:48 sunil Exp $ # # Copyright (c) 2017 Martin Pieuchot # @@ -61,9 +61,9 @@ fi ctfconv -o ${TMPFILE} -l "${LABEL}" "${INFILE}" 2> /dev/null if [ $? -eq 0 ]; then - objcopy --add-section .SUNW_ctf=${TMPFILE} ${STRIPFLAG} "${INFILE}" "${OUTFILE}" + objcopy --add-section .SUNW_ctf=${TMPFILE} ${STRIPFLAG} "${INFILE}" ${OUTFILE} else - strip ${STRIPFLAG} -o "${OUTFILE}" "$@" + strip ${STRIPFLAG} ${OUTFILE:+"-o${OUTFILE}"} "${INFILE}" fi rm -f ${TMPFILE} |