components/pwgen/patches/01-sha1num.c.patch
author Stefan Teleman <stefan.teleman@oracle.com>
Thu, 25 Sep 2014 07:38:21 -0700
branchs11u2-sru-backport
changeset 3338 efd3f74b7887
parent 3027 3bcf7d43558b
permissions -rw-r--r--
19682871 problem in UTILITY/BASH
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3027
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
     1
Developed in-house, not fed back - can't submit new issue
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
     2
 - community seems dead.
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
     3
Fixes Parfait problem file leak
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
     4
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
     5
--- pwgen-2.06/sha1num.c	2007-07-04 16:42:19.000000000 -0700
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
     6
+++ pwgen-2.06-fixed/sha1num.c	2013-09-05 07:33:17.194749959 -0700
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
     7
@@ -54,6 +54,8 @@
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
     8
 		sha1_update( &sha1_ctx, buf, i );
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
     9
 	}
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
    10
 
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
    11
+	fclose(f);
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
    12
+
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
    13
 	return;
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
    14
 }
3bcf7d43558b 17636356 problem in UTILITY/PWGEN
Jiri Kukacka <jiri.kukacka@oracle.com>
parents:
diff changeset
    15