cvs: CVSROOT / commitinfo.pl
| From: | Sascha Schumann | Date: | Tue, 12 Oct 2004 14:32:35 +0000 |
| Subject: | cvs: CVSROOT / commitinfo.pl | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28961@lists.php.net to get a copy of this message | ||
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;