Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7038

saveVersion script includes an additional \r while running whoami under windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.22.0
    • 0.22.0
    • build
    • None
    • Windows 7 / Eclipse

    • Reviewed

    Description

      I built common under windows occasionally, and found it failed because the 'user' in build/src/o/a/h/package-info.java is "myhostmyname^M".

      It seems because the whoami of windows give a string with '\n\r' rather than '\n' only. thus I add an additional tr for it to eliminate the problem.

      Since only windows would generate '\n\r' output, I think it won't harm to any other platform.

      Attachments

        1. HADOOP-7038.diff
          0.3 kB
          Wang Xu

        Activity

          People

            gnawux Wang Xu
            gnawux Wang Xu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: