mirror of
https://abf.rosa.ru/djam/samba.git
synced 2025-02-24 09:32:49 +00:00
35 lines
No EOL
1.5 KiB
Diff
35 lines
No EOL
1.5 KiB
Diff
From 371e987689d16074e43fb9f23e775120513f1d7c Mon Sep 17 00:00:00 2001
|
|
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
|
Date: Thu, 24 Jan 2019 01:21:29 +0300
|
|
Subject: [PATCH] ROSA bind GID
|
|
|
|
ROSA's bind package must have user group 'named' by default
|
|
(package bind-9.11.4-P1-1 does not have it, but I'll make it have it)
|
|
|
|
diff -ruN samba-4.12.0_orig/python/samba/provision/__init__.py samba-4.12.0/python/samba/provision/__init__.py
|
|
--- samba-4.12.0_orig/python/samba/provision/__init__.py 2020-01-31 18:25:36.000000000 +0800
|
|
+++ samba-4.12.0/python/samba/provision/__init__.py 2020-03-19 15:31:58.309648340 +0800
|
|
@@ -2200,7 +2200,8 @@
|
|
root_gid = pwd.getpwuid(root_uid).pw_gid
|
|
|
|
try:
|
|
- bind_gid = findnss_gid(["bind", "named"])
|
|
+ # ROSA's bind package must have user group 'named' by default (package 9.11.4-P1-1 does not have it, but I'll make it have it)
|
|
+ bind_gid = findnss_gid(["named", "bind"])
|
|
except KeyError:
|
|
bind_gid = None
|
|
|
|
diff -ruN samba-4.12.0_orig/source4/scripting/bin/samba_upgradedns samba-4.12.0/source4/scripting/bin/samba_upgradedns
|
|
--- samba-4.12.0_orig/source4/scripting/bin/samba_upgradedns 2020-01-31 18:25:36.000000000 +0800
|
|
+++ samba-4.12.0/source4/scripting/bin/samba_upgradedns 2020-03-19 15:31:58.309648340 +0800
|
|
@@ -76,7 +76,7 @@
|
|
def find_bind_gid():
|
|
"""Find system group id for bind9
|
|
"""
|
|
- for name in ["bind", "named"]:
|
|
+ for name in ["named", "bind"]:
|
|
try:
|
|
return grp.getgrnam(name)[2]
|
|
except KeyError:
|
|
-
|
|
2.17.1
|