SIPp / sipp

The SIPp testing tool
https://sipp.readthedocs.io
Other
916 stars 380 forks source link

/usr/bin/pager: No such file or directory #711

Closed ryandesign closed 6 months ago

ryandesign commented 6 months ago

After compiling the latest code in master on macOS, running ./sipp produced this error:

/usr/bin/pager: No such file or directory

followed by several pages of usage information.

There is no pager on macOS. There are, of course, less and more.

wdoekes commented 6 months ago

Bah. I was hoping to avoid having to add multiple options there, assuming that pager was ubiquitous.

We'd have to add multiple options here then:

    if (!argv[0]) {
        argv[0] = pager; /* missing PAGER */

Moving the access() call up to check for each possibility and then simply bailing without (p)error if none are found.