Good idea

On Thu, 2005-04-07 at 12:51 -0400, Christian Pearce wrote:
> [EMAIL PROTECTED] sysnav]$ /opt/csw/sbin/cfkey
> Making a key pair for cfengine, please wait, this could take a minute...
> Ppen /var/sysnav/.cfagent/ppkeys/localhost.priv failed: Permission
> [EMAIL PROTECTED] sysnav]$ echo $?
> 0
> 
> Perhaps these lines should be return 1;
> 
> from cfkey.c:
> 
> if (fd < 0)
>    {
>    printf("Ppen %s failed: %s.",CFPRIVKEYFILE,strerror(errno));
>    return 0;
>    }
>  
> if ((fp = fdopen(fd, "w")) == NULL )
>    {
>    printf("fdopen %s failed: %s.",CFPRIVKEYFILE, strerror(errno));
>    close(fd);
>    return 0;
>    }
> 
> if (fd < 0)
>    {
>    printf("open %s failed: %s.",CFPUBKEYFILE,strerror(errno));
>    return 0;
>    }
>  
> if ((fp = fdopen(fd, "w")) == NULL )
>    {
>    printf("fdopen %s failed: %s.",CFPUBKEYFILE, strerror(errno));
>    close(fd);
>    return 0;
>    }
> 
> 
> 
> _______________________________________________
> Bug-cfengine mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/bug-cfengine



_______________________________________________
Bug-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-cfengine

Reply via email to