bayonne-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bayonne-devel] ./status.bin --help gives out bogus information


From: David Sugar
Subject: Re: [Bayonne-devel] ./status.bin --help gives out bogus information
Date: Sat, 19 Jul 2003 18:46:16 -0400
User-agent: KMail/1.5

we could use argv[0] :).  It used to be a stand-alone binary, but now lives in 
the bayonne lib directory and invoked from the script, though...

On Saturday 19 July 2003 10:24 am, Erik Enge wrote:
> From bayonne/server/status.cpp:
>
>       strcpy(buffer, keypaths.getRunfiles());
>       strcat(buffer, "/bayonne.nodes");
>       if(!canModify(buffer))
>       {
>               strcpy(buffer, getenv("HOME"));
>               strcat(buffer, "/.bayonne.nodes");
>       }
>
>       if(argc != 1)
>       {
>               cerr << "use: bayonne_status" << endl;
>               exit(-1);
>       }
>
> I do not have a "bayonne_status" binary in my 1.2.6 installation so the
> help information it prints is not of much value.  Is there any reason
> that is unobvious to me why we cannot use argv[0] instead of
> "bayonne_status"?
>
> When I call the binary without any arguments, the following happens:
>
>   address@hidden /share/sys/bayonne/bayonne/lib/bayonne/1.2.6/status.bin
>   bayonne_status: /root/.bayonne.nodes: cannot access
>
> Shouldn't it have used the path I told it about via --prefix here?
> Perhaps that's what it does via keypaths.getRunfiles().
>
> Erik.
>
>
>
>
>
> _______________________________________________
> Bayonne-devel mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bayonne-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]