--- padb_r341 2009-11-26 13:18:34.955667000 +0100 +++ padb_r341_secret 2009-12-01 15:11:26.984540700 +0100 @@ -4726,7 +4726,7 @@ print "Failed to create secret file: $!\n"; return; } - if ( chmod( 0600, $FD ) != 1 ) { + if ( chmod( 0600, $filename ) != 1 ) { print "Failed to chmod secret file: $!\n"; return; }