RPM Community Forums

Mailing List Message of <popt-devel>

Using fnmatch(3) for popt alias/exec poptrc config

From: Jeff Johnson <n3npq@mac.com>
Date: Mon 12 May 2008 - 18:47:12 CEST
Message-Id: <7E6B8624-2332-42C4-894D-21D7CEC5AF40@mac.com>
SSIA

(aside) I've wanted to have the abilty to attach popt alias/exec to  
argv[0] from
poptrc configuration using fnmatch(3) for years. Only legacy forward  
compatibility has stopped me ...

For portability to the fnmatch(3) deprived, I'll work up a strncmp match
to handle a trailing "*" splat without needing fnmatch(3). That should
cover the common usage case.

todo++

73 de Jeff
Received on Mon May 12 18:48:41 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.