]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fill in Unknown for the system identifier if there is no utsname and not Windows 1413/head
authoruyjulian <uyjulian@gmail.com>
Wed, 8 Jul 2020 05:09:32 +0000 (00:09 -0500)
committeruyjulian <uyjulian@gmail.com>
Wed, 8 Jul 2020 05:09:32 +0000 (00:09 -0500)
libarchive/archive_write_set_format_iso9660.c

index 7cde44c34f752ca68545a2e8ade05a8c119f7ee1..faabd28ea640b8994ca349232550109e8d7980c5 100644 (file)
@@ -2178,7 +2178,8 @@ get_system_identitier(char *system_id, size_t size)
        strncpy(system_id, "Windows", size-1);
        system_id[size-1] = '\0';
 #else
-#error no way to get the system identifier on your platform.
+       strncpy(system_id, "Unknown", size-1);
+       system_id[size-1] = '\0';
 #endif
 }