+ if (nitem.configuration) {
+ /* ohash == nhash, not an update */
+ /* fhash == ohash, just update */
+ /* fhash != ohash, install as dest.zpmnew, warn */
+ /* TODO handle replacing config file
+ * with config directory */
+ if (diffs & D_OHASH) {
+ if (strlen(nitem.dest) > sizeof dest - 8) {
+ return seterror(conf,"config file path too long for install as %s.zpmnew", nitem.dest);
+ }
+ fprintf(stderr, "installing as .zpmnew\n");
+ sprintf(dest, "%s.zpmnew", nitem.dest);
+ nitem.dest = dest;
+ }
+ }
+