mainbayonne - Support: sr #102289, status.bin --help gives bogus info

 
 

sr #102289: status.bin --help gives bogus info

Submitter:  Invalid User ID <#21088>
Submitted:  Sun 20 Jul 2003 01:41:02 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  2 - Minor Status:  None
Privacy:  Public Assigned to:  dyfet
Open/Closed:  Open Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 24 Aug 2003 09:48:57 PM UTC, comment #1: 


This is a leftover from when bayonne_status was a seperate utility.
Now that it is bundled with the master bayonne script, all command
option errors should get trapped before it ever hits here, and so this is
an appendix; code that never gets executed anymore...

David Sugar <dyfet>
Group administrator
Sun 20 Jul 2003 01:41:02 PM UTC, original submission:  


>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:

  root@oslo#
/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().

Invalid User ID <#21088>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2003-08-24 dyfet Assigned toNone None

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code