You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flume.apache.org by jm...@apache.org on 2011/10/05 17:47:01 UTC

svn commit: r1179275 - /incubator/flume/trunk/bin/flume-daemon.sh

Author: jmhsieh
Date: Wed Oct  5 15:47:01 2011
New Revision: 1179275

URL: http://svn.apache.org/viewvc?rev=1179275&view=rev
Log:
FLUME-770: setting FLUME_IDENT_STRING based on $USER is not robust (Roman Shaposhnik)

Modified:
    incubator/flume/trunk/bin/flume-daemon.sh

Modified: incubator/flume/trunk/bin/flume-daemon.sh
URL: http://svn.apache.org/viewvc/incubator/flume/trunk/bin/flume-daemon.sh?rev=1179275&r1=1179274&r2=1179275&view=diff
==============================================================================
--- incubator/flume/trunk/bin/flume-daemon.sh (original)
+++ incubator/flume/trunk/bin/flume-daemon.sh Wed Oct  5 15:47:01 2011
@@ -70,7 +70,7 @@ if [ "$FLUME_PID_DIR" = "" ]; then
 fi
 
 if [ "$FLUME_IDENT_STRING" = "" ]; then
-  export FLUME_IDENT_STRING="$USER"
+  export FLUME_IDENT_STRING="`id -nu`"
 fi
 
 # some variables