From: uyjulian Date: Wed, 8 Jul 2020 05:09:32 +0000 (-0500) Subject: Fill in Unknown for the system identifier if there is no utsname and not Windows X-Git-Tag: v3.5.0~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baf72184e69d478ef6b6cf4eb10c0fe5a4dd1c4e;p=thirdparty%2Flibarchive.git Fill in Unknown for the system identifier if there is no utsname and not Windows --- diff --git a/libarchive/archive_write_set_format_iso9660.c b/libarchive/archive_write_set_format_iso9660.c index 7cde44c34..faabd28ea 100644 --- a/libarchive/archive_write_set_format_iso9660.c +++ b/libarchive/archive_write_set_format_iso9660.c @@ -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 }