[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 13 May 2002 09:32:56 -0000
albertel Mon May 13 05:32:56 2002 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- forgot to do environment.whatever
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.218 loncom/lonnet/perl/lonnet.pm:1.219
--- loncom/lonnet/perl/lonnet.pm:1.218 Mon May 13 05:26:29 2002
+++ loncom/lonnet/perl/lonnet.pm Mon May 13 05:32:56 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.218 2002/05/13 09:26:29 albertel Exp $
+# $Id: lonnet.pm,v 1.219 2002/05/13 09:32:56 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2372,7 +2372,13 @@
# ---------------------------------------------------- Any other user namespace
} elsif ($realm eq 'environment') {
# ----------------------------------------------------------------- environment
- return $ENV{'environment.'.$spacequalifierrest};
+ if (($uname eq $ENV{'user.name'})&&($udom eq $ENV{'user.domain'})) {
+ return $ENV{'environment.'.$spacequalifierrest};
+ } else {
+ my %returnhash=&userenvironment($udom,$uname,
+ $spacequalifierrest);
+ return $returnhash{$spacequalifierrest};
+ }
} elsif ($realm eq 'system') {
# ----------------------------------------------------------------- system.time
if ($space eq 'time') {