lsat (0.9.7.1-2) 004_checkpasswd.dpatch

Summary

 checkpasswd.c |    2 --
 1 file changed, 2 deletions(-)

    
download this patch

Patch contents

#! /bin/sh /usr/share/dpatch/dpatch-run
## 004_checkpasswd.dpatch by TomaszN <nowak2000@poczta.onet.pl>
##
## DP: checkpasswd module closes random file

@DPATCH@
diff -urNad lsat-0.9.7.1~/checkpasswd.c lsat-0.9.7.1/checkpasswd.c
--- lsat-0.9.7.1~/checkpasswd.c	2008-05-04 08:47:28.000000000 -0430
+++ lsat-0.9.7.1/checkpasswd.c	2009-06-29 11:13:38.000000000 -0430
@@ -38,7 +38,6 @@
     char temparray[2][128]; /*temparray. */
     int j=0;				/* counter variable  */
     int field;			/* field counter	*/
-    int fileval; 		/* return val */
     const char * tmp_file = "/tmp/lsat2.lsat"; /* temp file for storage */
 
     const char * tempfile =NULL;
@@ -153,7 +152,6 @@
     remove(tempfile);
     /* close the tmpfile */
     fclose(fileptr);
-    close(fileval);
     /* note dostuff below will rm tmpfile */
    
     header = "Please consider removing these system accounts.\nCheck to see if you need them for your system applications before removing.\nAlso, consult the securitylinks.txt file for more information.\n";