Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7168102

user.home property returns wrong dir when the user has the same uid with another user

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3
    • tbd
    • 7, 7u4
    • core-libs
    • generic
    • linux, linux_ubuntu

    Description

      in our lab's linux machines, there is a uadmin user, who has the same uid with root. But they don't have same user home dir.(root's home dir is /root, uadmin's home dir is /home/uadmin)

      when executing the following program
      public class GetPropertyTest extends Applet {
          public static void main(String[] args) {
              System.out.println("Value of " + args[0] + " is " + System.getProperty(args[0]));

          }
      }

      by java GetPropertyTest user.home, it prints "/root" not "/home/uadmin".
      command like "cd ~" will go to /home/uadmin.

      Tested with 7u4 b20

      Attachments

        Issue Links

          Activity

            People

              bchristi Brent Christian
              qgong Fred Gong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Imported:
                Indexed: