opnsense-src/usr.sbin/crunch/crunchgen
Alexey Dokuchaev ccfdf335d6 crunchgen: use realpath(3) instead of ``pwd -P''
r366466 (9c7bd4f198) 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
2021-10-27 09:26:00 +00:00
..
crunched_main.c Lift scope of buf[] to make it extend to a potential access via *basename 2020-12-10 09:31:05 +00:00
crunchgen.1 Remove obsolete RELEASE_CRUNCH 2019-07-19 20:04:21 +00:00
crunchgen.c crunchgen: use realpath(3) instead of ``pwd -P'' 2021-10-27 09:26:00 +00:00
Makefile Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mkskel.sh crunchgen: fix remaining issues under WARNS=6 2021-08-19 12:47:48 -05:00