mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +00:00
Allow distSetByName() to process all the relevant entries.
Submitted by: msmith
This commit is contained in:
parent
057b294dc0
commit
0395b68640
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27134
@ -4,7 +4,7 @@
|
||||
* This is probably the last program in the `sysinstall' line - the next
|
||||
* generation being essentially a complete rewrite.
|
||||
*
|
||||
* $Id: dist.c,v 1.109 1997/06/09 01:19:43 jkh Exp $
|
||||
* $Id: dist.c,v 1.110 1997/06/13 11:00:13 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
@ -393,13 +393,10 @@ distSetByName(Distribution *dist, char *name)
|
||||
else if (!strcmp(dist[i].my_name, name)) {
|
||||
*(dist[i].my_mask) |= dist[i].my_bit;
|
||||
status = TRUE;
|
||||
break;
|
||||
}
|
||||
else if (dist[i].my_dist) {
|
||||
if (distSetByName(dist[i].my_dist, name)) {
|
||||
if (distSetByName(dist[i].my_dist, name))
|
||||
status = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return status;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* This is probably the last program in the `sysinstall' line - the next
|
||||
* generation being essentially a complete rewrite.
|
||||
*
|
||||
* $Id: dist.c,v 1.109 1997/06/09 01:19:43 jkh Exp $
|
||||
* $Id: dist.c,v 1.110 1997/06/13 11:00:13 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
@ -393,13 +393,10 @@ distSetByName(Distribution *dist, char *name)
|
||||
else if (!strcmp(dist[i].my_name, name)) {
|
||||
*(dist[i].my_mask) |= dist[i].my_bit;
|
||||
status = TRUE;
|
||||
break;
|
||||
}
|
||||
else if (dist[i].my_dist) {
|
||||
if (distSetByName(dist[i].my_dist, name)) {
|
||||
if (distSetByName(dist[i].my_dist, name))
|
||||
status = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return status;
|
||||
|
Loading…
Reference in New Issue
Block a user