Lines Matching refs:path

161 static	int	dki_writeinfo (const dki_t *dkp, const char *path)
166 assert (path != NULL && path[0] != '\0');
168 if ( (fp = fopen (path, "w")) == NULL )
170 dbg_val1 ("dki_writeinfo %s\n", path);
174 touch (path, dkp->time); /* restore time of key file */
297 char path[MAX_PATHSIZE+1];
331 pathname (path, sizeof (path), dkp->dname, dkp->fname, DKI_KEY_FILEEXT);
332 dbg_val ("dki_read: path \"%s\"\n", path);
333 if ( (fp = fopen (path, "r")) == NULL )
336 "dki_read: Can\'t open file \"%s\" for reading", path);
345 "dki_read: Can\'t read key from file %s (errno %d)", path, err);
360 pathname (path, sizeof (path), dkp->dname, dkp->fname, DKI_ACT_FILEEXT);
361 if ( fileexist (path) )
370 pathname (path, sizeof (path), dkp->dname, dkp->fname, DKI_PUB_FILEEXT);
371 if ( fileexist (path) )
375 pathname (path, sizeof (path), dkp->dname, dkp->fname, DKI_DEP_FILEEXT);
376 if ( fileexist (path) )
400 char path[MAX_PATHSIZE+1];
412 pathname (path, sizeof (path), dir, dentp->d_name, NULL);
413 if ( is_directory (path) && recursive )
415 dbg_val ("directory: recursive %s\n", path);
416 dki_readdir (path, listp, recursive);
559 char path[MAX_PATHSIZE+1];
577 pathname (path, sizeof (path), dkp->dname, dkp->fname, *pext);
578 if ( fileexist (path) )
582 dbg_val2 ("dki_remove: %s ==> %s \n", path, newpath);
583 rename (path, newpath);
598 char path[MAX_PATHSIZE+1];
612 pathname (path, sizeof (path), dkp->dname, dkp->fname, *pext);
613 if ( fileexist (path) )
615 dbg_val ("dki_remove: %s \n", path);
616 unlink (path);
950 char path[MAX_PATHSIZE+1];
961 pathname (path, sizeof (path), dkp->dname, dkp->fname, DKI_KEY_FILEEXT);
962 dki_writeinfo (dkp, path);
974 char path[MAX_PATHSIZE+1];
983 pathname (path, sizeof (path), dkp->dname, dkp->fname, DKI_KEY_FILEEXT);
984 dki_writeinfo (dkp, path);
987 touch (path, time (NULL));