Lines Matching full:tmppath
424 char *path, *tmppath = NULL; in write_certs() local
510 tmppath = xasprintf(".%s", path); in write_certs()
511 fd = openat(d, tmppath, in write_certs()
523 tmppath = xasprintf(".%s", path); in write_certs()
524 fd = openat(d, tmppath, in write_certs()
532 if (tmppath != NULL && fd >= 0) { in write_certs()
534 (void)unlinkat(d, tmppath, 0); in write_certs()
537 err(1, "%s/%s", dir, tmppath ? tmppath : path); in write_certs()
540 if (tmppath != NULL) { in write_certs()
541 if (ret == 0 && renameat(d, tmppath, d, path) != 0) { in write_certs()
546 (void)unlinkat(d, tmppath, 0); in write_certs()
547 free(tmppath); in write_certs()
548 tmppath = NULL; in write_certs()