-
Notifications
You must be signed in to change notification settings - Fork 569
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Description
When using the --import
option, the date of the database is the time the file is copied and does not prteseve the time when the file was created
To reproduce
cve-bin-tool --import <DB_FILE>
Then run a scan. Database time is reported as the time of the import and not the time that the exported data was created.
Expected behaviour:
Database time is preserved
Actual behaviour:
Database time is updated to time of cope
Version/platform info
Python 3.10 Linux (Debian 12)
Anything else?
File attribute can be preserved by using shutil.copy2 instead of shutil.copy
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers