1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

python:netcmd: Only put regular files into the tarball

We also have ldapi, other sockets or pipes around, we don't want to
add. This will be relevant for adding checksums later.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2023-02-15 08:05:42 +01:00 committed by Andrew Bartlett
parent 9fb57dab37
commit e584350a55

View File

@ -1238,7 +1238,7 @@ class cmd_domain_backup_offline(samba.netcmd.Command):
os.remove(path + self.backup_ext)
elif path.endswith('.ldb') or path.endswith('.tdb'):
logger.info(' skipping ' + arc_path)
else:
elif os.path.isfile(path):
logger.info(' adding misc file ' + arc_path)
tar.add(path, arcname=arc_path)