aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/lib/libuutil/common/uu_misc.c
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2020-10-11 08:23:00 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2021-10-27 09:26:00 +0000
commitccfdf335d6976bb0e3436b808418d14f3d150a3d (patch)
tree1d584d1d5e412a89f978d78fe75776cd1dbe405e /cddl/contrib/opensolaris/lib/libuutil/common/uu_misc.c
parent70de1003da6f6e78e32f92bd98c9f18f965e6663 (diff)
downloadsrc-main.tar.gz
src-main.zip
crunchgen: use realpath(3) instead of ``pwd -P''HEADmain
r366466 (9c7bd4f198e1) fixed a subtle bug by stripping the trailing '\n' appended to the output of popen("cd %s && pwd -P", p->srcdir). Replace this cumbersome implementation with a single realpath(3) call which avoids spawning a shell, reading from the stream with fgets(3), and final strdup(3). Reviewed by: arichardson, kevans Approved by: imp Differential Revision: https://reviews.freebsd.org/D26734
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libuutil/common/uu_misc.c')
0 files changed, 0 insertions, 0 deletions