September 11 2017 File::Path Security Back

A More Complex Case: rm-rf-with-file.t

        @altered = CreateSubdirs::create_subdirs($tdir, $sdir);
        for my $alt (@altered[0..6]) {
            my $rv = system(qq|rm -rf $alt|);
            Test::More::is($rv >> 8, 1, "Unable to rm -rf $alt");
        }
        $rv = system(qq|rm -rf $altered[7]|);
        Test::More::is($rv >> 8, 0, "Able to rm -rf $altered[7]");


Home Last TOC Copyright © 2017 James E Keenan Back Next