You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2017/04/20 14:57:50 UTC

[1/2] incubator-trafficcontrol git commit: Traffic Ops ORT can update zero size file

Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 583223fa6 -> 0e8978bda


Traffic Ops ORT can update zero size file


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/cc17398a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/cc17398a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/cc17398a

Branch: refs/heads/master
Commit: cc17398a678a513c34eadd329000f086166f78be
Parents: 583223f
Author: Jifeng Yang <ji...@cisco.com>
Authored: Wed Jan 25 17:11:22 2017 -0500
Committer: David Neuman <da...@gmail.com>
Committed: Thu Apr 20 08:57:21 2017 -0600

----------------------------------------------------------------------
 traffic_ops/bin/traffic_ops_ort.pl | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/cc17398a/traffic_ops/bin/traffic_ops_ort.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/bin/traffic_ops_ort.pl b/traffic_ops/bin/traffic_ops_ort.pl
index 605eb9b..b9aa71b 100755
--- a/traffic_ops/bin/traffic_ops_ort.pl
+++ b/traffic_ops/bin/traffic_ops_ort.pl
@@ -2529,12 +2529,6 @@ sub can_read_write_file {
 	my $username = $ENV{LOGNAME} || $ENV{USER} || getpwuid($<);
 	( $log_level >> $TRACE ) && print "TRACE User to validate $file against: $username\n";
 
-	if ( -z $file ) {
-		( $log_level >> $ERROR ) && print "ERROR $file has size=0!\n";
-		$cfg_file_tracker->{$filename}->{'audit_failed'}++;
-		return 0;
-	}
-
 	if ( !-R $file ) {
 		( $log_level >> $ERROR ) && print "ERROR $file is not readable by $username!\n";
 		$cfg_file_tracker->{$filename}->{'audit_failed'}++;


[2/2] incubator-trafficcontrol git commit: This closes #229

Posted by ne...@apache.org.
This closes #229


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/0e8978bd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/0e8978bd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/0e8978bd

Branch: refs/heads/master
Commit: 0e8978bda8cc1bf9858b4656f7399e37c69ec0e1
Parents: cc17398
Author: David Neuman <da...@gmail.com>
Authored: Thu Apr 20 08:57:32 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Thu Apr 20 08:57:32 2017 -0600

----------------------------------------------------------------------

----------------------------------------------------------------------