Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/autofs/common.c
Context not available. | |||||
} | } | ||||
void | void | ||||
parse_master(struct node *root, const char *master) | parse_master(struct node *root, const char **masters) | ||||
{ | { | ||||
const char * master; | |||||
log_debugx("parsing auto_master file at \"%s\"", master); | while (*masters) { | ||||
master = *masters++; | |||||
yyin = fopen(master, "r"); | log_debugx("parsing auto_master file at \"%s\"", master); | ||||
if (yyin == NULL) | |||||
err(1, "unable to open %s", master); | |||||
parse_master_yyin(root, master); | yyin = fopen(master, "r"); | ||||
if (yyin == NULL) | |||||
err(1, "unable to open %s", master); | |||||
fclose(yyin); | parse_master_yyin(root, master); | ||||
yyin = NULL; | |||||
log_debugx("done parsing \"%s\"", master); | fclose(yyin); | ||||
yyin = NULL; | |||||
log_debugx("done parsing \"%s\"", master); | |||||
} | |||||
node_expand_includes(root, true); | node_expand_includes(root, true); | ||||
node_expand_direct_maps(root); | node_expand_direct_maps(root); | ||||
} | } | ||||
Context not available. |