Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-770

setting FLUME_IDENT_STRING based on $USER is not robust

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.4
    • Fix Version/s: 0.9.5
    • Component/s: Shell
    • Labels:
      None

      Description

      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

        Attachments

        1. FLUME-770.patch.txt
          0.3 kB
          Roman Shaposhnik

          Activity

            People

            • Assignee:
              rvs Roman Shaposhnik
              Reporter:
              rvs Roman Shaposhnik
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: