Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Bug in /usr/lib/python3.11/vendor-packages/time_slider/plugin/rsync/backup.py

Random Kiwi3 days ago

In /usr/lib/python3.11/vendor-packages/time_slider/plugin/rsync/backup.py, since nearestOlder and nearestNewer are initialized to an empty tuple, instead of None, the if checks for “is None” won't protect against an index out-of-range.

Changing the initial value to None will fix this.

    `# Othewise identify the backup on the device that is`  
   `# nearest to but newer than the queued backup.`  
   `nearestOlder = ()`  
   `nearestNewer = ()`  

[...]
if ctime > value:
if nearestOlder is None or \
value > nearestOlder[1]:
nearestOlder = (name, value)
else:
if nearestNewer is None or \
value < nearestNewer[1]:
nearestNewer = (name, value)

Comments
Post Details
Added 3 days ago
0 comments
15 views