Project

General

Profile

Actions

Bug #88

open

svcs -x might miss reasons

Added by John Doe almost 12 years ago. Updated over 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2010-08-23
Due date:
% Done:

0%

Estimated time:
Difficulty:
Tags:
Gerrit CR:

Description

See Comments.

 2004-12-21 07:26:51 GMT
[dp: this is marked bite size, so relocating comments into description]

bustos 2004-12-20

print_dependency_reasons() in svcs/explain.c has

1576         for (spp = uu_list_first(svcp->causes);
1577 spp != NULL && spp->svcp != svcp;
1578 spp = uu_list_next(svcp->causes, spp)) {
1579 determine_summary(spp->svcp);

I think the while clause might be wrong, and maybe should be

for (spp = uu_list_first(svcp->causes);
spp != NULL;
spp = uu_list_next(svcp->causes, spp)) {
if (spp->svcp == svcp)
continue;
determine_summary(spp->svcp);

If so, then svcs -x might miss reasons after the self-pointer. The question
is whether any other reasons can be placed after a self-pointer. This
needs to be investigated.

 2004-12-21 07:26:51 GMT
Actions

Also available in: Atom PDF