New -as mkisofs options -long-rr-time, -no-long-rr-time, -short-rr-time

This commit is contained in:
2025-06-24 19:13:09 +02:00
parent 433d4be78a
commit b333b18337
5 changed files with 139 additions and 66 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.
@ -964,6 +964,9 @@ int Xorriso_genisofs_help(struct XorrisO *xorriso, int flag)
" Disable deep directory relocation (violates ISO9660)",
" -hide-rr-moved Relocate deep directories to /.rr_moved",
" -rr_reloc_dir NAME Set deep directory relocation target in root",
" -long-rr-time Use long Rock Ridge time format",
" -short-rr-time Enable use of short Rock Ridge time format",
" -no-long-rr-time Enable use of short Rock Ridge time format",
" -uid uid Make the owner of all files this uid.",
" -gid gid Make the group owner of all files this gid.",
" -o FILE, -output FILE Set output file name",
@ -2570,6 +2573,13 @@ rr_reloc_dir:;
goto problem_handler_2;
Xorriso_relax_compliance(xorriso, "deep_paths_off:long_paths_off", 0);
} else if(strcmp(argpt, "-long-rr-time") == 0) {
Xorriso_relax_compliance(xorriso, "rrip_tf_long", 0);
} else if(strcmp(argpt, "-no-long-rr-time") == 0 ||
strcmp(argpt, "-short-rr-time") == 0) {
Xorriso_relax_compliance(xorriso, "rrip_tf_short", 0);
} else if(strcmp(argpt, "-log-file") == 0 ||
strcmp(argpt, "-file_name_limit") == 0) {
i+= 1;