1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

samba-tool/ntacl: Remove unused and unnecessary return

setntacl() just returns None.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-06-22 16:59:36 +12:00 committed by Andrew Bartlett
parent 1fc549ae39
commit 1a7a5dcd72

View File

@ -122,15 +122,15 @@ class cmd_ntacl_set(Command):
else:
self.outf.write("file: %s\n" % _path)
try:
return setntacl(lp,
_path,
acl,
str(domain_sid),
system_session_unix(),
xattr_backend,
eadb_file,
use_ntvfs=use_ntvfs,
service=service)
setntacl(lp,
_path,
acl,
str(domain_sid),
system_session_unix(),
xattr_backend,
eadb_file,
use_ntvfs=use_ntvfs,
service=service)
except Exception as e:
raise CommandError("Could not set acl for %s: %s" % (_path, e))