lsof-org / lsof

LiSt Open Files
https://lsof.readthedocs.io
Other
414 stars 104 forks source link

[BUG] using autoconf does not properly pick strftime #293

Closed thinrope closed 1 year ago

thinrope commented 1 year ago

Describe the bug It is not possible to use custom separator in repeat mode when lsof is compiled via autoconfig

To Reproduce Building from source via:

git clone git@github.com:lsof-org/lsof.git
cd lsof
autoreconf -i
./configure 
make

produces a binary that does not understand strftime:

$ ./lsof -r 1c1m=== /etc/resolv.conf
lsof: illegal <fmt>: "==="
lsof 4.98.0
 latest revision: https://github.com/lsof-org/lsof
 latest FAQ: https://github.com/lsof-org/lsof/blob/master/00FAQ
 latest (non-formatted) man page: https://github.com/lsof-org/lsof/blob/master/Lsof.8
 usage: [-?abhHKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]]
 [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
 [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.

Expected behavior

$ ./lsof -r 1c1m=== /etc/resolv.conf
===

Environment:

Additional context Related bug for Gentoo https://bugs.gentoo.org/910547, patch will be ready shortly.