fixes to securewaremodule.c

lance@fox.com
Mon, 11 Jul 94 16:44:52 PDT

I have fixed the one problem with securewaremodule.c and
now the get_security_class() function returns the correct
information. Here are the diffs..

I would be interested to hear if anyone is using either the
secureware or the syslog modules... Also, is anyone using
the signal module yet? any bugs? problems?

Thank you! and Enjoy!!

===================================================================
RCS file: /u/lance/CVS/python/Modules/securewaremodule.c,v
retrieving revision 1.1
diff -r1.1 securewaremodule.c
75a76
> struct pr_default *pr_d;
77,78d77
< char *value;
< char *rtn;
82c81
< if (!agetuser("default")) {

---
>   if ((pr_d = getprdfnam("default")) == NULL) {
86,91c85,86
<   rtn = agetstr("u_secclass",&value);
< printf("rtn = %d, value = %s\n",rtn,value);
<   rtn = agetstr("secclass",&value);
< printf("rtn = %d, value = %s\n",rtn,value);
< /*  for (;p->mask_val != 0;p++) {
<     if (p->mask_val == pr_pw->ufld.fd_secclass[0])
---
>   for (;p->mask_val != 0;p++) {
>     if (p->mask_val == pr_d->prd.fd_secclass[0])
93c88
<   }*/
---
>   }

--
Lance Ellinghouse                lance@fox.com