Merge branch 'jk/coding-guidelines-update' into maint
[gitweb.git] / t / t0021 / rot13-filter.pl
index 4d5697ee51c673abbe8a1a90b58bf5b7b9856ce1..617f581e56cac95191d6f1301566fa6671ecaf6f 100644 (file)
@@ -109,14 +109,18 @@ sub packet_flush {
 $debug->flush();
 
 while (1) {
-       my ($command) = packet_txt_read() =~ /^command=([^=]+)$/;
+       my ($command) = packet_txt_read() =~ /^command=(.+)$/;
        print $debug "IN: $command";
        $debug->flush();
 
-       my ($pathname) = packet_txt_read() =~ /^pathname=([^=]+)$/;
+       my ($pathname) = packet_txt_read() =~ /^pathname=(.+)$/;
        print $debug " $pathname";
        $debug->flush();
 
+       if ( $pathname eq "" ) {
+               die "bad pathname '$pathname'";
+       }
+
        # Flush
        packet_bin_read();