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

No way to prevent jar from following symbolic links

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P5 P5
    • None
    • 1.1.6
    • tools
    • None
    • jar
    • sparc
    • solaris_2.5.1


      jar always follows symbolic links and as far as I know there is
      no option to prevent it from doing so. So if you have a symlink
      in your filesystem like "lib -> .." you throw jar into an infinite
      loop. When creating an archive on UNIX you almost never want to
      follow symlinks.

      By default tar does not follow symbolic links. Also zip provides a
      way to not follow symlinks (-y).

      I consider this a bug not an RFE since it is such a glaring omission.

            kkladkosunw Konstantin Kladko (Inactive)
            jdipol Joe Dipol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: