]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
dpv(3): MFC r330943, r335264
authordteske <dteske@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 20 Jun 2018 05:50:54 +0000 (05:50 +0000)
committerdteske <dteske@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 20 Jun 2018 05:50:54 +0000 (05:50 +0000)
commit2f950de60301c5ad97535b9da17559fc50a39604
tree4ac2e927a6d3862b0042a8912a2e2986c21fb28f
parentcacf2b935234b3ece6f36e7dad6f337784c55ae5
dpv(3): MFC r330943, r335264

r330943:
Fix bad error messages from dpv(3)

Before = dpv: <__func__>: posix_spawnp(3): No such file or directory
 After = dpv: <path/cmd>: No such file or directory

Most notably, show the 2nd argument being passed to posix_spawnp(3)
so we know what path/cmd failed.

Also, we don't need to have "posix_spawnp(3)" in the error message
nor the function because that can [a] change and [b] traversed using
a debugger if necessary.

r335264:
Fix comparison between pointer and char literal

PR: misc/204252
Reported by: David Binderman <dcb314@hotmail.com>
Sponsored by: Smule, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@335407 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libdpv/dialog_util.c
lib/libdpv/dprompt.c
lib/libdpv/util.c