Changed new -compliance rule rrip_tf_1900 to rrip_tf_y1900 and default to rrip_tf_year0

This commit is contained in:
2025-10-03 11:43:38 +02:00
parent 7eb806d648
commit ab7ab2b3d8
7 changed files with 122 additions and 118 deletions

View File

@@ -1,7 +1,7 @@
/* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
Copyright 2007-2024 Thomas Schmitt, <scdbackup@gmx.net>
Copyright 2007-2025 Thomas Schmitt, <scdbackup@gmx.net>
Provided under GPL version 2 or later.
@@ -1110,7 +1110,7 @@ ex:;
int Xorriso_check_rrip_tf_1900(struct XorrisO *xorriso, time_t t, int flag)
{
if(xorriso->relax_compliance & isoburn_igopt_rrip_tf_year0 ||
if((!(xorriso->relax_compliance & isoburn_igopt_rrip_tf_y1900)) ||
t >= -2208988800)
return(1);
sprintf(xorriso->info_text, "Time value %s", ctime(&t));
@@ -1118,7 +1118,7 @@ int Xorriso_check_rrip_tf_1900(struct XorrisO *xorriso, time_t t, int flag)
strcpy(xorriso->info_text + strlen(xorriso->info_text) - 1,
" in local time is before 01 Jan 1900 00:00:00 UTC");
strcpy(xorriso->info_text + strlen(xorriso->info_text),
" and -compliance rrip_tf_year0 is not set");
" and -compliance rrip_tf_y1900 is set");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "WARNING", 0);
return(0);
}