Bug#502878: john: allow for non-persistent /var/run

Justin Pryzby justinpryzby at users.sourceforge.net
Mon Oct 20 15:28:18 UTC 2008


Package: john
Version: 1.7.2-3
Severity: normal
Tags: patch
File: /usr/share/john/cronjob

--- /usr/share/john/cronjob
+++ tmp.ki8907/cronjob	2008-10-20 08:26:35.000000000 -0700
@@ -22,6 +22,7 @@
 RESTORE=$RUNDIR/restore
 
 PASSFILE=`grep -v ^# /etc/john/john-mail.conf | grep -e "[ ]*passfile[ ]*=[ ]*" | sed -e "s/#.*//" -e "s/.*=[ ]*//" |head -1`
+[ -d "$PIDDIR" ] || mkdir "$PIDDIR"
 cd $RUNDIR
 
 # Gets the PID of the process that should be running john,






More information about the Pkg-john-devel mailing list