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:
parent
1fc549ae39
commit
1a7a5dcd72
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user