Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-646

bogus error message from `cf-key` (3.5.0b2)

    XMLWordPrintable

    Details

      Description

      Hello,

      cf-key (just compiled from the latest GitHub sources) prints a bogus
      error message regarding not been able to make directories:

          $ cf-key -p ~/.cfagent/ppkeys/localhost.pub
          2013-05-21T12:26:23+0200    error: Unable to make directories to '/home/rmurri/.cfagent/bin/cf-agent -D from_cfexecd'. (mkdir: File exists)
          MD5=e8ba8d5aae1943b817fe0cc204b7f8d6
      

      There's two problems with the error message:

      1. It shouldn't be there in the first place (if a directory exists, why mkdir it again?)
      2. The directory definitely shouldn't be named {{.../.cfagent/bin/cf-agent -D from_cfexecd""

      Here's the versions of the software involved:

          $ cf-key --version
          CFEngine Core 3.5.0b2.38840ad
      
          rmurri@xenia:~/gc3/src/cfengine$ gcc --version
          gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
          Copyright (C) 2012 Free Software Foundation, Inc.
          This is free software; see the source for copying conditions.  There is NO
          warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      
          rmurri@xenia:~/gc3/src/cfengine$ lsb_release -a
          No LSB modules are available.
          Distributor ID:	Ubuntu
          Description:	Ubuntu 12.10
          Release:	12.10
          Codename:	quantal
      

        Attachments

          Activity

            People

            • Assignee:
              karlhto Karl Hole Totland
              Reporter:
              riccardomurri Riccardo Murri
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel