[Forensics-changes] [fcrackzip] 29/93: debian/patches/21-bug-528219-pw-not-initialized-stdin.patch: new
Giovani Augusto Ferreira
giovani-guest at moszumanska.debian.org
Wed Dec 28 03:06:36 UTC 2016
This is an automated email from the git hooks/post-receive script.
giovani-guest pushed a commit to branch debian
in repository fcrackzip.
commit 4d7c5840bd8f402109d64787ea7fa14daf927297
Author: Jari Aalto <jari.aalto at cante.net>
Date: Tue Dec 29 16:33:52 2009 +0200
debian/patches/21-bug-528219-pw-not-initialized-stdin.patch: new
---
.../21-bug-528219-pw-not-initialized-stdin.patch | 38 ++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/debian/patches/21-bug-528219-pw-not-initialized-stdin.patch b/debian/patches/21-bug-528219-pw-not-initialized-stdin.patch
new file mode 100644
index 0000000..2c1f6e0
--- /dev/null
+++ b/debian/patches/21-bug-528219-pw-not-initialized-stdin.patch
@@ -0,0 +1,38 @@
+From f718247480341b6588368f646036a9235ddeea90 Mon Sep 17 00:00:00 2001
+From: Jari Aalto <jari.aalto at cante.net>
+Date: Tue, 29 Dec 2009 16:32:50 +0200
+Subject: [PATCH] main.c: read passwords from stdin
+
+
+Signed-off-by: Jari Aalto <jari.aalto at cante.net>
+---
+ main.c | 6 +++---
+ 1 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/main.c b/main.c
+index f632241..0d25f53 100644
+--- a/main.c
++++ b/main.c
+@@ -379,7 +379,7 @@ main (int argc, char *argv[])
+ break;
+
+ case 'l':
+- pw[0] = 0;
++ pw[0] = '\0';
+ switch (sscanf (optarg, "%d-%d", &min_length, &max_length))
+ {
+ default:
+@@ -521,8 +521,8 @@ main (int argc, char *argv[])
+ case m_dictionary:
+ if (!pw[0])
+ {
+- fprintf (stderr, "you have to specify a file to read passwords from using the -p switch\n");
+- exit (1);
++ printf("no file to read passwords from have been specified, passwords will be read from stdin\n");
++ dict_file = stdin;
+ }
+
+ if (!(dict_file = fopen (pw, "r")))
+--
+1.6.5
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/fcrackzip.git
More information about the forensics-changes
mailing list