incubator-flume-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Shaposhnik (Created) (JIRA)" <>
Subject [jira] [Created] (FLUME-770) setting FLUME_IDENT_STRING based on $USER is not robust
Date Mon, 03 Oct 2011 20:56:34 GMT
setting FLUME_IDENT_STRING based on $USER is not robust

                 Key: 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

The following bit of code from fails to produce the correct result under sudo-type
of execution:

if [ "$FLUME_IDENT_STRING" = "" ]; then

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:!default.jspa
For more information on JIRA, see:


View raw message