Lines Matching refs:dstfile
861 char *dstfile, *cp, *proto; in open_dstfile() local
874 dstfile = safe_malloc(len); in open_dstfile()
876 (void) strlcpy(dstfile, destdir, len); in open_dstfile()
877 if (dstfile[strlen(dstfile) - 1] != '/') in open_dstfile()
878 (void) strlcat(dstfile, "/", len); in open_dstfile()
879 cp = dstfile + strlen(dstfile); in open_dstfile()
881 (void) strlcat(dstfile, iconf->service, len); in open_dstfile()
882 (void) strlcat(dstfile, "-", len); in open_dstfile()
888 (void) strlcat(dstfile, proto, len); in open_dstfile()
889 (void) strlcat(dstfile, ".xml", len); in open_dstfile()
895 fd = open(dstfile, O_WRONLY|O_CREAT|(overwrite ? O_TRUNC : O_EXCL), in open_dstfile()
902 progname, iconf->service, dstfile); in open_dstfile()
903 free(dstfile); in open_dstfile()
908 progname, dstfile, strerror(errno)); in open_dstfile()
909 free(dstfile); in open_dstfile()
922 free(dstfile); in open_dstfile()
927 (*finfo)->filename = dstfile; in open_dstfile()