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

No way to prevent jar from following symbolic links

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P5
    • Resolution: Not an Issue
    • Affects Version/s: 1.1.6
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
      jar
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description


      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: