Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33678

cmdbridge executable should be uploaded to $XDG_RUNTIME_DIR, not /tmp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 19.0 (master branch)
    • Remote Linux
    • None

      I've noticed this file in /tmp on my Linux workstation after trying the new remote Linux feature in Qt Creator:

      $  file /tmp/cmdbridge.aAfmmR6DvW
      /tmp/cmdbridge.aAfmmR6DvW: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=c530209beab941e84e9b4e252629bec40653ae4b, stripped
      

      ("statically linked" in this case probably means "Go executable")

      This is good, except for the fact that it is in /tmp. I don't know if that came from my environment's $TMPDIR or if it is hardcoded. Either way, that's wrong, because /tmp can be mounted noexec and is not guaranteed to be a Unix filesystem with support for the +x attribute.

      Please upload the executable to $XDG_RUNTIME_DIR if that is defined. If not, then fall back to other places.

        For Gerrit Dashboard: QTCREATORBUG-33678
        # Subject Branch Project Status CR V

            madwinter Marcus Tillmanns
            thiago Thiago Macieira
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change