All pastes #176525 Raw Edit

Tekhne

public text v1 · immutable
#176525 ·published 2006-09-19 18:41 UTC
rendered paste body
#! /usr/local/bin/perl -w

use strict;
use File::Find;
use File::stat;

my @dirs = @ARGV;
find(\&attrib, @dirs);

sub attrib {
        my $st = stat($File::Find::name) or die "Can't stat $File::Find::name: $!";
        if ($st->mode & 0002) {
                print "$File::Find::name is world-writeable\n";
        }
}