Binary files nsalibselinux/src/selinux.pyc and libselinux-1.34.0/src/selinux.pyc differ diff --exclude-from=exclude -N -u -r nsalibselinux/src/selinuxswig.i libselinux-1.34.0/src/selinuxswig.i --- nsalibselinux/src/selinuxswig.i 2006-11-16 17:15:25.000000000 -0500 +++ libselinux-1.34.0/src/selinuxswig.i 2007-01-24 13:37:27.000000000 -0500 @@ -25,10 +25,10 @@ %apply int *OUTPUT { int * }; %apply int *OUTPUT { size_t * }; -%typemap(in, numinputs=0) security_context_t *(security_context_t temp) { +%typemap(in, numinputs=0) security_context_t *(security_context_t temp=NULL) { $1 = &temp; } -%typemap(argout) security_context_t * (char *temp) { +%typemap(argout) security_context_t * (char *temp=NULL) { if (*$1) temp = *$1; else @@ -126,7 +126,7 @@ extern int selinux_raw_to_trans_context(char *raw, security_context_t *transp); -%typemap(in, numinputs=0) char **(char *temp) { +%typemap(in, numinputs=0) char **(char *temp=NULL) { $1 = &temp; } diff --exclude-from=exclude -N -u -r nsalibselinux/src/selinuxswig_wrap.c libselinux-1.34.0/src/selinuxswig_wrap.c --- nsalibselinux/src/selinuxswig_wrap.c 2006-11-16 17:15:25.000000000 -0500 +++ libselinux-1.34.0/src/selinuxswig_wrap.c 2007-01-24 13:38:47.000000000 -0500 @@ -2831,8 +2831,8 @@ PyObject *resultobj = 0; security_context_t *arg1 = (security_context_t *) 0 ; int result; - security_context_t temp1 ; - char *temp10 ; + security_context_t temp1 = NULL ; + char *temp10 = NULL ; { arg1 = &temp1; @@ -2878,8 +2878,8 @@ int result; int val1 ; int ecode1 = 0 ; - security_context_t temp2 ; - char *temp20 ; + security_context_t temp2 = NULL ; + char *temp20 = NULL ; PyObject * obj0 = 0 ; { @@ -2910,8 +2910,8 @@ PyObject *resultobj = 0; security_context_t *arg1 = (security_context_t *) 0 ; int result; - security_context_t temp1 ; - char *temp10 ; + security_context_t temp1 = NULL ; + char *temp10 = NULL ; { arg1 = &temp1; @@ -2936,8 +2936,8 @@ PyObject *resultobj = 0; security_context_t *arg1 = (security_context_t *) 0 ; int result; - security_context_t temp1 ; - char *temp10 ; + security_context_t temp1 = NULL ; + char *temp10 = NULL ; { arg1 = &temp1; @@ -2980,8 +2980,8 @@ PyObject *resultobj = 0; security_context_t *arg1 = (security_context_t *) 0 ; int result; - security_context_t temp1 ; - char *temp10 ; + security_context_t temp1 = NULL ; + char *temp10 = NULL ; { arg1 = &temp1; @@ -3024,8 +3024,8 @@ PyObject *resultobj = 0; security_context_t *arg1 = (security_context_t *) 0 ; int result; - security_context_t temp1 ; - char *temp10 ; + security_context_t temp1 = NULL ; + char *temp10 = NULL ; { arg1 = &temp1; @@ -3068,8 +3068,8 @@ PyObject *resultobj = 0; security_context_t *arg1 = (security_context_t *) 0 ; int result; - security_context_t temp1 ; - char *temp10 ; + security_context_t temp1 = NULL ; + char *temp10 = NULL ; { arg1 = &temp1; @@ -3116,8 +3116,8 @@ int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; - security_context_t temp2 ; - char *temp20 ; + security_context_t temp2 = NULL ; + char *temp20 = NULL ; PyObject * obj0 = 0 ; { @@ -3154,8 +3154,8 @@ int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; - security_context_t temp2 ; - char *temp20 ; + security_context_t temp2 = NULL ; + char *temp20 = NULL ; PyObject * obj0 = 0 ; { @@ -3191,8 +3191,8 @@ int result; int val1 ; int ecode1 = 0 ; - security_context_t temp2 ; - char *temp20 ; + security_context_t temp2 = NULL ; + char *temp20 = NULL ; PyObject * obj0 = 0 ; { @@ -3313,8 +3313,8 @@ int result; int val1 ; int ecode1 = 0 ; - security_context_t temp2 ; - char *temp20 ; + security_context_t temp2 = NULL ; + char *temp20 = NULL ; PyObject * obj0 = 0 ; { @@ -3474,8 +3474,8 @@ security_context_t arg1 ; security_context_t *arg2 = (security_context_t *) 0 ; int result; - security_context_t temp2 ; - char *temp20 ; + security_context_t temp2 = NULL ; + char *temp20 = NULL ; PyObject * obj0 = 0 ; { @@ -3734,8 +3734,8 @@ int alloc1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - security_context_t temp3 ; - char *temp30 ; + security_context_t temp3 = NULL ; + char *temp30 = NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -3778,8 +3778,8 @@ int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; - security_context_t temp2 ; - char *temp20 ; + security_context_t temp2 = NULL ; + char *temp20 = NULL ; PyObject * obj0 = 0 ; { @@ -4212,8 +4212,8 @@ int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; - security_context_t temp2 ; - char *temp20 ; + security_context_t temp2 = NULL ; + char *temp20 = NULL ; PyObject * obj0 = 0 ; { @@ -4250,8 +4250,8 @@ int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; - security_context_t temp2 ; - char *temp20 ; + security_context_t temp2 = NULL ; + char *temp20 = NULL ; PyObject * obj0 = 0 ; { @@ -4284,7 +4284,7 @@ PyObject *resultobj = 0; char **arg1 = (char **) 0 ; int result; - char *temp1 ; + char *temp1 = NULL ; { arg1 = &temp1; @@ -4310,8 +4310,8 @@ int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; - char *temp2 ; - char *temp3 ; + char *temp2 = NULL ; + char *temp3 = NULL ; PyObject * obj0 = 0 ; { diff --exclude-from=exclude -N -u -r nsalibselinux/utils/getfilecon.c libselinux-1.34.0/utils/getfilecon.c --- nsalibselinux/utils/getfilecon.c 2006-11-16 17:15:17.000000000 -0500 +++ libselinux-1.34.0/utils/getfilecon.c 2007-01-24 12:11:33.000000000 -0500 @@ -5,7 +5,7 @@ int main(int argc, char **argv) { - char *buf; + char *buf=NULL; int rc, i; if (argc < 2) { @@ -15,6 +15,9 @@ for (i = 1; i < argc; i++) { rc = getfilecon(argv[i], &buf); + if (buf) { + printf("Buf has data\n"); + } if (rc < 0) { fprintf(stderr, "%s: getfilecon(%s) failed\n", argv[0], argv[i]);