X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Ftextradius.pm;h=74807878b59eca653867ae52e202f78113213008;hp=691753f25550ce0ef7f6db548b98fed36aa54fb5;hb=6dcf9258234427eb6cd6ad3e9912c4f1dac91ceb;hpb=6f8f8741b105fdc1fc005536e6ee0acbd5783793 diff --git a/FS/FS/part_export/textradius.pm b/FS/FS/part_export/textradius.pm index 691753f25..74807878b 100644 --- a/FS/FS/part_export/textradius.pm +++ b/FS/FS/part_export/textradius.pm @@ -55,7 +55,7 @@ sub textradius_insert { #subroutine, not method #silly arg processing my($att, @check); - push @check, $att while ($att=shift @attributes) ne '-'; + push @check, $att while @attributes && ($att=shift @attributes) ne '-'; my %check = @check; my %reply = @attributes; @@ -126,7 +126,7 @@ sub textradius_download { $rsync->exec( { src => "$user\@$host:$users", dest => $dest, - } ); + } ) or die "error downloading $user\@$host:$users : ". $rsync->err; $dest; } @@ -145,7 +145,7 @@ sub textradius_upload { $rsync->exec( { src => "$dir/users", dest => "$user\@$host:$users", - } ); + } ) or die "error uploading to $user\@$host:$users : ". $rsync->err; flock(LOCK,LOCK_UN); close LOCK;