Alexey Dokuchaev ccfdf335d6 crunchgen: use realpath(3) instead of ``pwd -P''
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
2021-10-27 09:26:00 +00:00
..
2021-05-07 22:13:31 +02:00
2021-09-29 21:18:17 -06:00
2020-06-22 07:46:24 +00:00
2021-10-08 16:26:21 -07:00
2021-10-04 11:38:27 +02:00
2020-12-19 13:17:25 +00:00
2021-07-21 10:16:11 +01:00
2021-05-03 09:55:40 -06:00
2021-01-05 14:56:23 -05:00
2020-10-09 14:03:45 +00:00
2021-04-10 11:16:02 +02:00
2021-10-06 21:56:20 -08:00
2021-08-08 10:16:06 +02:00
2021-10-17 10:02:15 +02:00
2020-08-17 10:25:02 +00:00
2020-10-09 14:03:45 +00:00
2020-06-24 02:08:08 +00:00
2021-07-21 10:14:26 +01:00
2020-08-21 09:48:00 +00:00
2021-04-02 07:01:20 +00:00
2021-09-03 06:14:59 -07:00
2020-09-11 13:28:37 +00:00
2021-04-04 00:50:28 +03:00
2021-04-04 00:50:28 +03:00
2021-04-04 00:50:28 +03:00