sas Tue Oct 12 10:32:35 2004 EDT Modified files: /CVSROOT commitinfo.pl Log: - add check for empty directory http://cvs.php.net/diff.php/CVSROOT/commitinfo.pl?r1=1.5&r2=1.6&ty=u Index: CVSROOT/commitinfo.pl diff -u CVSROOT/commitinfo.pl:1.5 CVSROOT/commitinfo.pl:1.6 --- CVSROOT/commitinfo.pl:1.5 Sat May 26 19:46:15 2001 +++ CVSROOT/commitinfo.pl Tue Oct 12 10:32:34 2004 @@ -11,9 +11,16 @@ my $directory = $ARGV[0]; +if ($directory eq "") { + print "CVS did not pass directory information. Denying commit.\n"; + exit 1; +} + open(FC, ">$last_file.$id") || die "cannot open last file"; print FC "$directory\n"; close(FC); # throw away STDIN so parent doesn't get SIGPIPE while(<>) { } + +exit 0;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php