Return-Path: X-Original-To: apmail-incubator-flume-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flume-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B80A596D5 for ; Mon, 3 Oct 2011 21:02:57 +0000 (UTC) Received: (qmail 59932 invoked by uid 500); 3 Oct 2011 21:02:57 -0000 Delivered-To: apmail-incubator-flume-dev-archive@incubator.apache.org Received: (qmail 59900 invoked by uid 500); 3 Oct 2011 21:02:57 -0000 Mailing-List: contact flume-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flume-dev@incubator.apache.org Delivered-To: mailing list flume-dev@incubator.apache.org Received: (qmail 59766 invoked by uid 99); 3 Oct 2011 21:02:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 21:02:56 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 21:02:55 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 53F112A7D42 for ; Mon, 3 Oct 2011 21:02:35 +0000 (UTC) Date: Mon, 3 Oct 2011 21:02:35 +0000 (UTC) From: "Roman Shaposhnik (Updated) (JIRA)" To: flume-dev@incubator.apache.org Message-ID: <1450333802.4615.1317675755345.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <111586347.4543.1317675394608.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (FLUME-770) setting FLUME_IDENT_STRING based on $USER is not robust MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLUME-770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Roman Shaposhnik updated FLUME-770: ----------------------------------- Attachment: FLUME-770.patch.txt > setting FLUME_IDENT_STRING based on $USER is not robust > ------------------------------------------------------- > > Key: FLUME-770 > URL: https://issues.apache.org/jira/browse/FLUME-770 > Project: Flume > Issue Type: Bug > Components: Shell > Affects Versions: v0.9.4 > Reporter: Roman Shaposhnik > Assignee: Roman Shaposhnik > Priority: Minor > Fix For: v0.9.5 > > Attachments: FLUME-770.patch.txt > > > The following bit of code from flume-daemon.sh fails to produce the correct result under sudo-type of execution: > if [ "$FLUME_IDENT_STRING" = "" ]; then > export FLUME_IDENT_STRING="$USER" > fi > This is because $USER is not always set for shell. A more robust solution would be to use the output of id -nu -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira