git: dcba4f2b4380 - stable/13 - conf/kern.mk: save some work by using realpath instead of cd ; pwd

Mateusz Guzik mjg at FreeBSD.org
Mon Feb 1 12:41:04 UTC 2021


The branch stable/13 has been updated by mjg:

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

commit dcba4f2b43809023a9ffb25080fb68c21e53e5df
Author:     Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-01-27 12:25:21 +0000
Commit:     Mateusz Guzik <mjg at 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}
 


More information about the dev-commits-src-all mailing list