[24095] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r23699 - in trunk/athena/bin/mitmailmove: . debian

daemon@ATHENA.MIT.EDU (Evan Broder)
Thu Apr 2 21:11:23 2009

Date: Thu, 2 Apr 2009 21:11:15 -0400
From: Evan Broder <broder@MIT.EDU>
Message-Id: <200904030111.n331BFwE019607@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: broder
Date: 2009-04-02 21:11:15 -0400 (Thu, 02 Apr 2009)
New Revision: 23699

Modified:
   trunk/athena/bin/mitmailmove/debian/changelog
   trunk/athena/bin/mitmailmove/mitmailmove.pl
Log:
In mitmailmove:
  * Try $ATHENA_USER before using $USER.


Modified: trunk/athena/bin/mitmailmove/debian/changelog
===================================================================
--- trunk/athena/bin/mitmailmove/debian/changelog	2009-04-03 01:11:01 UTC (rev 23698)
+++ trunk/athena/bin/mitmailmove/debian/changelog	2009-04-03 01:11:15 UTC (rev 23699)
@@ -1,3 +1,9 @@
+debathena-mitmailmove (10.0.1-0debathena1) unstable; urgency=low
+
+  * Try $ATHENA_USER before using $USER.
+
+ -- Evan Broder <broder@mit.edu>  Thu, 02 Apr 2009 21:03:07 -0400
+
 debathena-mitmailmove (10.0.0-0debathena2) unstable; urgency=low
 
   * Change DEB_AUTO_UPDATE_AUTOCONF to 2.50, not 1.

Modified: trunk/athena/bin/mitmailmove/mitmailmove.pl
===================================================================
--- trunk/athena/bin/mitmailmove/mitmailmove.pl	2009-04-03 01:11:01 UTC (rev 23698)
+++ trunk/athena/bin/mitmailmove/mitmailmove.pl	2009-04-03 01:11:15 UTC (rev 23699)
@@ -57,7 +57,7 @@
 
 $opt_mailbox = 'INBOX' unless $opt_mailbox;
 
-my $username = $ENV{'USER'} || getlogin || (getpwuid($<))[0] ||
+my $username = $ENV{'ATHENA_USER'} || $ENV{'USER'} || getlogin || (getpwuid($<))[0] ||
     errorout "Cannot determine user name";
 
 unless ($opt_host) {


home help back first fref pref prev next nref lref last post