2024-11-05 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdautoback(8) that caused it to crash when
	run on Python 3.6.
	* Fixed a regression in rdautorest(8) that caused it to crash when
	run on Python 3.6.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2024-11-05 13:48:23 -05:00
parent 6ce6b3ad2b
commit 823f058d7b
3 changed files with 9 additions and 4 deletions

View File

@ -24925,3 +24925,8 @@
* Incremented the package version to 4.3.0int6.
2024-10-23 Fred Gleason <fredg@paravelsystems.com>
* Added an 'hpiplayout_test' command in 'tests/'.
2024-11-05 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdautoback(8) that caused it to crash when
run on Python 3.6.
* Fixed a regression in rdautorest(8) that caused it to crash when
run on Python 3.6.

View File

@ -50,10 +50,10 @@ syslog.syslog(syslog.LOG_INFO,'Starting Rivendell backup to "'+mountpoint+'"')
# Mount backup device
#
result=os.system(command='findmnt '+mountpoint)
if(os.waitstatus_to_exitcode(result)!=0):
if(os.WEXITSTATUS(result)!=0):
Path(mountpoint).mkdir(parents=True,exist_ok=True)
result=os.system(command='mount '+mountpoint)
if(os.waitstatus_to_exitcode(result)!=0):
if(os.WEXITSTATUS(result)!=0):
syslog.syslog(syslog.LOG_ERR,'unable to mount backup drive')
exit(1)
os.system(command='sleep 5')

View File

@ -75,10 +75,10 @@ syslog.syslog(syslog.LOG_INFO,'Starting Rivendell restore from "'+mountpoint+'"'
# Mount backup device
#
result=os.system(command='findmnt '+mountpoint)
if(os.waitstatus_to_exitcode(result)!=0):
if(os.WEXITSTATUS(result)!=0):
Path(mountpoint).mkdir(parents=True,exist_ok=True)
result=os.system(command='mount '+mountpoint)
if(os.waitstatus_to_exitcode(result)!=0):
if(os.WEXITSTATUS(result)!=0):
syslog.syslog(syslog.LOG_ERR,'unable to mount backup drive')
exit(1)
os.system(command='sleep 5')