]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
fix strcmp in unattended install
authorDaniel Glanzmann <dg@ipfire.org>
Sun, 28 Sep 2008 17:51:12 +0000 (19:51 +0200)
committerDaniel Glanzmann <dg@ipfire.org>
Sun, 28 Sep 2008 17:51:12 +0000 (19:51 +0200)
src/install+setup/install/unattended.c

index 267989b8237404cef68bf5e8a6c209d42f2fc175..1acace1b003687f3d6160052fbc725bf70ab5c2b 100644 (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);