make getpeername() return the original socket address which before it was intercepted
[hband-tools.git] / user-tools / is_gzip
blob90796508d880a4a93e66a672422131f3ef9d33e5
1 #!/usr/bin/env perl
2 die "$!\n" unless open _, $ARGV[0];
3 exit 0 and read _, $_, 3 and /^\x1f\x8b\x08$/;
4 exit 1;
6 __END__
7 =pod
9 =head1 NAME
11 is_gzip - Return 0 if the file in argument has gzip signature
13 =cut