Explorar el Código

* The "wrote settings" notice to shell now specifies which settings it wrote (pack/conf/all)

svn: 1859
Bryan Drewery hace 21 años
padre
commit
392a79b2f0
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      src/binary.c

+ 5 - 1
src/binary.c

@@ -415,7 +415,11 @@ void write_settings(const char *fname, int die, bool conf)
     bits |= WRITE_CONF;
 
   if ((hash = bin_checksum(fname, bits, &ctx))) {
-    printf("* Wrote settings to: %s.\n", fname);
+    printf("* Wrote %ssettings to: %s.\n", ((bits & WRITE_PACK) && !(bits & WRITE_CONF)) ? "pack " :
+                                           ((bits & WRITE_CONF) && !(bits & WRITE_PACK)) ? "conf " :
+                                           ((bits & WRITE_PACK) && (bits & WRITE_CONF))  ? "pack/conf "  :
+                                           "",
+                                           fname);
     if (die == -1)			/* only bother decrypting if we aren't about to exit */
       edpack(&settings, hash, PACK_DEC);
   }