fix strcmp in unattended install

This commit is contained in:
Daniel Glanzmann
2008-09-28 19:51:12 +02:00
parent 0dcf5eae3e
commit 0a2e8bec92

View File

@@ -147,7 +147,7 @@ int unattended_setup(struct keyvalue *unattendedkv) {
}
/* restore backup */
if (restore_file != "") {
if (!strcmp(restore_file, "")) {
fprintf(flog, "unattended: Restoring Backup\n");
snprintf(commandstring, STRING_SIZE,
"cd /harddisk && /bin/tar -xvz --preserve -f /cdrom/%s", restore_file);