The Samba-Bugzilla – Attachment 9834 Details for
Bug 10542
re-running provision fails with Samba 4.1 and blames posix ACLs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
4.1 patch cherry-picked from master (additional #2)
0002-provision-capture-slightly-less-generic-exceptions-d.patch (text/plain), 1.69 KB, created by
Andrew Bartlett
on 2014-04-06 23:46:13 UTC
(
hide
)
Description:
4.1 patch cherry-picked from master (additional #2)
Filename:
MIME Type:
Creator:
Andrew Bartlett
Created:
2014-04-06 23:46:13 UTC
Size:
1.69 KB
patch
obsolete
>From 30139bb4e1b63484677a7a6e7f2a5f0fd783cc9a Mon Sep 17 00:00:00 2001 >From: Garming Sam <garming@catalyst.net.nz> >Date: Wed, 5 Feb 2014 15:40:59 +1300 >Subject: [PATCH 2/2] provision: capture slightly less generic exceptions > during the test for acls > >Signed-off-by: Garming Sam <garming@catalyst.net.nz> >Reviewed-by: Andrew Bartlett <abartlet@samba.org> >Reviewed-by: Jelmer Vernooij <jelmer@samba.org> >(cherry picked from commit f279a297a4a94c5cbc049c9b2cde14b02960a76f) >--- > python/samba/provision/__init__.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/python/samba/provision/__init__.py b/python/samba/provision/__init__.py >index 3b00cf0..f75202e 100644 >--- a/python/samba/provision/__init__.py >+++ b/python/samba/provision/__init__.py >@@ -1534,7 +1534,7 @@ def setsysvolacl(samdb, netlogon, sysvol, uid, gid, domainsid, dnsdomain, > try: > try: > smbd.set_simple_acl(file.name, 0755, gid) >- except Exception: >+ except OSError: > if not smbd.have_posix_acls(): > # This clue is only strictly correct for RPM and > # Debian-like Linux systems, but hopefully other users >@@ -1546,7 +1546,7 @@ def setsysvolacl(samdb, netlogon, sysvol, uid, gid, domainsid, dnsdomain, > "Try the mounting the filesystem with the 'acl' option.") > try: > smbd.chown(file.name, uid, gid) >- except Exception: >+ except OSError: > raise ProvisioningError("Unable to chown a file on your filesystem. " > "You may not be running provision as root.") > finally: >-- >1.9.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 10542
:
9832
|
9833
| 9834