Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 2021 12:42:06 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: bcb7f57aa227 - main - conf/kern.mk: save some work by using realpath instead of cd ; pwd
Message-ID:  <202101271242.10RCg6wJ000537@gitrepo.freebsd.org>

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

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

commit bcb7f57aa22757dd0206e88894bc003a93d0c351
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-01-27 12:25:21 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-01-27 12:41:33 +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.
---
 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?202101271242.10RCg6wJ000537>