Lines Matching defs:file
105 if ( zp->file ) free ((char *)zp->file);
140 zone_t *zone_new (zone_t **zp, const char *zone, const char *dir, const char *file, const char *signed_ext, const zconf_t *cp)
148 dbg_val3 ("zone_new: (zp, zone: %s, dir: %s, file: %s, cp)\n", zone, dir, file);
152 if ( file == NULL || *file == '\0' )
153 file = cp->zonefile;
155 { /* check if file contains a path */
157 if ( (p = strrchr (file, '/')) != NULL )
159 snprintf (path, sizeof (path), "%s/%.*s", dir, p-file, file);
161 file = p+1;
171 new->file = strdup (file);
172 /* check if file ends with ".signed" ? */
173 if ( (p = strrchr (new->file, '.')) != NULL && strcmp (p, signed_ext) == 0 )
175 new->sfile = strdup (new->file);
180 snprintf (path, sizeof (path), "%s%s", file, signed_ext);
230 dbg_val1 ("zone_readdir: check local config file %s\n", path);
231 if ( fileexist (path) ) /* load local config file */
253 if ( !fileexist (path) ) /* no .signed file found ? ... */
330 fprintf (stderr, "%s: file\t %s\n", mesg, z->file);