[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bayonne-devel] ./status.bin --help gives out bogus information
From: |
Erik Enge |
Subject: |
[Bayonne-devel] ./status.bin --help gives out bogus information |
Date: |
Sat, 19 Jul 2003 10:24:32 -0400 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Portable Code, linux) |
>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] ./status.bin --help gives out bogus information,
Erik Enge <=