Fix file regress from stdin if obj directory exists.
authorbluhm <bluhm@openbsd.org>
Tue, 4 Jul 2017 23:12:01 +0000 (23:12 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 4 Jul 2017 23:12:01 +0000 (23:12 +0000)
regress/usr.bin/file/Makefile

index dad20ca..e0fff44 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.8 2017/06/28 17:28:39 nicm Exp $
+# $OpenBSD: Makefile,v 1.9 2017/07/04 23:12:01 bluhm Exp $
 
 FILE=file
 
@@ -22,7 +22,7 @@ all: ${REGRESS_TARGET}
 
 stdin:
        @echo ${*}
-       @${FILE} - <t0.in | \
+       @${FILE} - <${.CURDIR}/t0.in | \
                diff - ${.CURDIR}/${*}.out || \
                (echo "XXX ${*} failed" && false)