--- loncom/build/lpml_parse.pl 2014/06/09 05:14:12 1.61 +++ loncom/build/lpml_parse.pl 2020/10/07 19:55:39 1.62 @@ -12,7 +12,7 @@ # The LearningOnline Network with CAPA # lpml_parse.pl - Linux Packaging Markup Language parser # -# $Id: lpml_parse.pl,v 1.61 2014/06/09 05:14:12 raeburn Exp $ +# $Id: lpml_parse.pl,v 1.62 2020/10/07 19:55:39 raeburn Exp $ # # Written by Scott Harrison, codeharrison@yahoo.com # @@ -1324,6 +1324,15 @@ END } return $result; } + my $testtarget = $target; + if ($categoryname eq 'setuid script') { + my ($path,$filename) = ($target =~ /^(.*\/)([^\/]+)$/); + my $alttarget = $path.'.'.$filename; + if ((-e "$targetroot/$target") && (-B "$targetroot/$target") && + (-e "$targetroot/$alttarget") && (-T "$targetroot/$alttarget")) { + $testtarget = $alttarget; + } + } my $bflag='-b5'; $bflag='-b3' if ($buildlink); $bflag='-b6' if (($dependencies) or @@ -1332,7 +1341,7 @@ END return <