--- loncom/Attic/lchtmldir 2002/05/03 03:21:25 1.2 +++ loncom/Attic/lchtmldir 2002/11/25 18:45:55 1.4 @@ -117,7 +117,7 @@ if($DEBUG) { if( $authentication ne "unix:" && $authentication ne "internal:" && - $authentication ne "krb4:" && + $authentication !~ /^krb(4|5):(.*)/ && $authentication ne "localauth:") { if($DEBUG) { print("Invalid authentication parameter: ".$authentication."\n"); @@ -175,11 +175,13 @@ if(!( -e $dirtry1)) { if($DEBUG) { print("User's home directory $dirtry1 does not exist\n"); } - exit 6; + if ($authentication eq "unix:") { + exit 6; + } } &EnableRoot; -&System("/bin/mkdir $fulldir") unless (-e $fulldir); +&System("/bin/mkdir -p $fulldir") unless (-e $fulldir); unless(-e $fulldir."/index.html") { open OUT,">".$fulldir."/index.html"; print OUT<) { + print ("EnableRoot $< $>\n"); ($<,$>)=($>,$<); ($(,$))=($),$(); } @@ -261,7 +246,7 @@ sub EnableRoot { # root capability is already enabled } if($DEBUG) { - print("Enable Root - id = $> \n"); + print("Enable Root - id = $> $<\n"); } return $>; }