Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Feb 2021 12:40:56 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: dcba4f2b4380 - stable/13 - conf/kern.mk: save some work by using realpath instead of cd ; pwd
Message-ID:  <202102011240.111Ceuew097439@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=dcba4f2b43809023a9ffb25080fb68c21e53e5df

commit dcba4f2b43809023a9ffb25080fb68c21e53e5df
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-01-27 12:25:21 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-02-01 12:39:17 +0000

    conf/kern.mk: save some work by using realpath instead of cd ; pwd
    
    I did not check if the entire ordeal can be avoided in the first place.
    
    (cherry picked from commit bcb7f57aa22757dd0206e88894bc003a93d0c351)
---
 sys/conf/kmod.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index c245f447cefb..c0d4441af029 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -309,7 +309,7 @@ ${_ILINKS}:
 	*) \
 		path=${SYSDIR}/${.TARGET:T}/include ;; \
 	esac ; \
-	path=`(cd $$path && /bin/pwd)` ; \
+	path=`realpath $$path`; \
 	${ECHO} ${.TARGET:T} "->" $$path ; \
 	ln -fns $$path ${.TARGET:T}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102011240.111Ceuew097439>