Openwall Project   /home  Owl  JtR  Pro  crypt  pam_passwdqc  tcb  phpass  scanlogd  popa3d  msulogin  /  Linux  BIND  /  advisories  presentations  /  services  donations  /  wordlists  passwords  /  NEWS  community  lists  Wiki  CVSweb  mirrors  signatures
bringing security into open environments
 
Password Recovery Resources on the Net
[<prev] [next>] [thread-next>] [month] [year] [list]
Date: Sun, 13 Sep 2009 16:30:34 +0200
From: Guillaume Rousse <Guillaume.Rousse@...ia.fr>
To: john-users@...ts.openwall.com
Subject: [patch] fix format errors

Hello.

The following patch fix build error with -Wformat -Werror=format-security.

-- 
BOFH excuse #160:

non-redundant fan failure

diff -Naur -x '*~' john-1.7.3.1/src/recovery.c john-1.7.3.1-fix-format-errors/src/recovery.c
--- john-1.7.3.1/src/recovery.c	2006-02-27 05:12:05.000000000 +0100
+++ john-1.7.3.1-fix-format-errors/src/recovery.c	2009-09-13 16:02:20.000000000 +0200
@@ -157,7 +157,7 @@
 static void rec_format_error(char *fn)
 {
 	if (ferror(rec_file))
-		pexit(fn);
+		pexit("%s", fn);
 	else {
 		fprintf(stderr, "Incorrect crash recovery file format: %s\n",
 			path_expand(rec_name));


Powered by Openwall GNU/*/Linux - Powered by OpenVZ