[rsbac] Strange rsbac_groupdel usage

Colin Pitrat colin.pitrat at bull.net
Tue Dec 19 11:17:30 CET 2006


Hello,
as I was working on bash_completion, I found something strange :

$ rsbac_groupdel
(null) (RSBAC 1.3.0)
***
Use: (null) [flags] group [group2 ...]
  -v = verbose,
  -N ta = transaction number (default = value of RSBAC_TA, if set, or 0)

Notice the (null). This is because progname (and this is also the case 
for verbose) is defined globally and locally :

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

char * progname;
int verbose = 0;
rsbac_list_ta_number_t ta_number = 0;

void use(void)
...

and then :

int main(int argc, char ** argv)
{
   int res = 0;
   char * progname;
   int verbose = 0;

-- 
Colin Pitrat (Bull Services Telco)
Bull,  Architect of an Open World (TM)
Tél : +33 (0)  1 30 80 72 93
www.bull.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colin.pitrat.vcf
Type: text/x-vcard
Size: 247 bytes
Desc: not available
Url : http://www.rsbac.org/pipermail/rsbac/attachments/20061219/a0160692/attachment.vcf 


More information about the rsbac mailing list