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

sun/net/www/protocol/file/DirPermissionDenied.sh leaves garbage on some linux systems

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • core-libs
    • b04
    • generic
    • generic
    • Verified

      sun/net/www/protocol/file/DirPermissionDenied.sh has these lines:

      mkdir -p ${TESTDIR}
      chmod 333 ${TESTDIR}
      ...
      rm -rf ${TESTDIR}

      On one of SQE's test machines the "rm -rf" fails saying "cannot open directory...: Permission denied". The machine is a --

      $ uname -a
      Linux sc14160057 2.6.18-238.0.0.0.1.el5xen #1 SMP Tue Jan 4 07:38:47 EST 2011 i686 i686 i386 GNU/Linux
      $ arch
      i686
      $ cat /etc/redhat-release
      Red Hat Enterprise Linux Server release 5.6 (Tikanga)

      It seems this system needs a read access to rm, even if called by the owner.

      The test runs fine on other systems.

            weijun Weijun Wang
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: