From 762ad1c4baf04aa2e5dcdbcf6242b3e34d92cd4e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 2 Oct 2010 13:08:37 -0700 Subject: s4-test: silence the Failed to chown message in make test --- source4/scripting/python/samba/provision.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source4') diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index 1d0abf426a..79f180dfcb 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -1672,8 +1672,9 @@ def provision(setup_dir, logger, session_info, os.chmod(dns_keytab_path, 0640) os.chown(dns_keytab_path, -1, paths.bind_gid) except OSError: - logger.info("Failed to chown %s to bind gid %u", dns_keytab_path, - paths.bind_gid) + if os.environ.get('UID_WRAPPER'): + logger.info("Failed to chown %s to bind gid %u", dns_keytab_path, + paths.bind_gid) logger.info("Please install the phpLDAPadmin configuration located at %s into /etc/phpldapadmin/config.php", @@ -1826,7 +1827,8 @@ def create_zone_file(lp, logger, paths, targetdir, setup_path, dnsdomain, os.chmod(dns_dir, 0775) os.chmod(paths.dns, 0664) except OSError: - logger.error("Failed to chown %s to bind gid %u" % (dns_dir, paths.bind_gid)) + if os.environ.get('UID_WRAPPER'): + logger.error("Failed to chown %s to bind gid %u" % (dns_dir, paths.bind_gid)) if targetdir is None: os.system(rndc + " unfreeze " + lp.get("realm")) -- cgit