Uploaded image for project: 'Qt License server'
  1. Qt License server
  2. QLS-1791

utils::removeDir() may remove the parent directory of the directory parameter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 3.4.0
    • None
    • Linux/X11
    • License server development 46

    Description

      • Calling utils::removeDir() with a path that does not end with a directory separator ("/") appears to instead delete the parent directory of the passed directory as well:
      utils::removeDir("/home/<user>/test1/test2")
      • expected result:
        • only "test2" directory and its contents are removed
      • actual result:
        • test1 with its contents are removed

      This reproduces at least on Linux.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            arttu.tarkiainen Arttu Tarkiainen
            arttu.tarkiainen Arttu Tarkiainen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes