From d427b11ed9aa98bb408d4badd529b024e586c1e0 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 13 Jan 2026 09:23:37 -0500 Subject: [PATCH] 2026-01-13 Fred Gleason * Fixed a bug in rdautoback(8) that would generate an incorrect 'AudioStorage=' metadata value if the audio store contained sub directories. Signed-off-by: Fred Gleason --- ChangeLog | 4 ++++ utils/rdautoback/rdautoback.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bd149368..3a390cd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25117,3 +25117,7 @@ 2026-01-13 Fred Gleason * Fixed a bug in rdautoback(8) that threw an exception when operating with a database version less than 353. +2026-01-13 Fred Gleason + * Fixed a bug in rdautoback(8) that would generate an incorrect + 'AudioStorage=' metadata value if the audio store contained + sub directories. diff --git a/utils/rdautoback/rdautoback.py b/utils/rdautoback/rdautoback.py index 79dff9c5..651ab5e9 100755 --- a/utils/rdautoback/rdautoback.py +++ b/utils/rdautoback/rdautoback.py @@ -97,7 +97,7 @@ def BackupMountpoint(mntpt): else: f.write('RealmName=NULL\n') db.close() - with os.popen('du -h '+mntpt+'/snd',mode='r') as f1: + with os.popen('du -hd 0 '+mntpt+'/snd',mode='r') as f1: values=f1.read().split('\t') f.write('AudioStorage='+values[0]+'\n') f1.close()