Lines Matching refs:map_path
153 char *map_path; /* Qualified map name */ in dump_map_to_dit() local
175 map_path = (char *)am(myself, strlen(domain) + strlen(map_name) + in dump_map_to_dit()
177 if (NULL == map_path) { in dump_map_to_dit()
182 strcpy(map_path, ypdbpath); in dump_map_to_dit()
183 add_separator(map_path); in dump_map_to_dit()
184 strcat(map_path, domain); in dump_map_to_dit()
185 add_separator(map_path); in dump_map_to_dit()
186 strcat(map_path, map_name); in dump_map_to_dit()
189 dbm = dbm_open(map_path, O_RDONLY, 0644); in dump_map_to_dit()
192 sfree(map_path); in dump_map_to_dit()
357 char *map_path; in dump_dit_to_map() local
367 map_path = (char *)am(myself, ypdbpath_sz + strlen(map_name) + in dump_dit_to_map()
369 if (NULL == map_path) in dump_dit_to_map()
372 strcpy(map_path, ypdbpath); in dump_dit_to_map()
373 add_separator(map_path); in dump_dit_to_map()
374 strcat(map_path, domain); in dump_dit_to_map()
375 add_separator(map_path); in dump_dit_to_map()
376 strcat(map_path, NTOL_PREFIX); in dump_dit_to_map()
377 strcat(map_path, map_name); in dump_dit_to_map()
379 if (FAILURE == map_ctrl_init(&map, map_path)) { in dump_dit_to_map()
380 sfree(map_path); in dump_dit_to_map()
384 sfree(map_path); in dump_dit_to_map()