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

setting FLUME_IDENT_STRING based on $USER is not robust

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.9.4
    • 0.9.5
    • Shell
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: