New command -iso_nowtime to set fixed timestamp for synthetic files

This commit is contained in:
2019-04-18 11:28:35 +02:00
parent e9a424add1
commit 1f8d9c7a44
17 changed files with 187 additions and 76 deletions

View File

@ -1001,3 +1001,18 @@ int Xorriso_make_guid(struct XorrisO *xorriso, char *line, int flag)
return(ret);
}
int Xorriso_set_libisofs_now(struct XorrisO *xorriso, int flag)
{
int ret;
time_t now;
if(xorriso->do_override_now_time) {
now= xorriso->now_time_override;
ret= iso_nowtime(&now, 1);
} else {
ret= iso_nowtime(&now, 0);
}
return(ret);
}