--- loncom/lond 2004/08/24 10:59:50 1.239 +++ loncom/lond 2004/08/24 20:59:15 1.240 @@ -2,7 +2,7 @@ # The LearningOnline Network # lond "LON Daemon" Server (port "LOND" 5663) # -# $Id: lond,v 1.239 2004/08/24 10:59:50 foxr Exp $ +# $Id: lond,v 1.240 2004/08/24 20:59:15 banghart Exp $ # # Copyright Michigan State University Board of Trustees # @@ -57,7 +57,7 @@ my $DEBUG = 0; # Non zero to ena my $status=''; my $lastlog=''; -my $VERSION='$Revision: 1.239 $'; #' stupid emacs +my $VERSION='$Revision: 1.240 $'; #' stupid emacs my $remoteVERSION; my $currenthostid="default"; my $currentdomainid; @@ -1908,7 +1908,11 @@ sub remove_user_file_handler { if (-e $udir) { my $file=$udir.'/userfiles/'.$ufile; if (-e $file) { - unlink($file); + if (-f $file){ + unlink($file); + }elsif(-d $file){ + rmdir($file); + } if (-e $file) { &Failure($client, "failed\n", "$cmd:$tail"); } else {