%PDF- %PDF-
| Direktori : /usr/lib/python3/dist-packages/SSSDConfig/__pycache__/ |
| Current File : //usr/lib/python3/dist-packages/SSSDConfig/__pycache__/ipachangeconf.cpython-312.pyc |
�
ﳚhpJ � �\ � d Z ddlZddlZddlZddlZdd�Z G d� de� Z G d� de� Zy) a
ipachangeconf - configuration file manipulation classes and functions
partially based on authconfig code
Copyright (c) 1999-2007 Red Hat, Inc.
Author: Simo Sorce <ssorce@redhat.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
� Nc � � d}t j }|r|t j z } t j | ||� }t j
|t j � t j |d� S # t $ rK}|j \ }}|dk7 r& t j |� n# t $ r Y nw xY wt ||� �d }~ww xY w)N���zr+)�os�O_RDWR�O_CREAT�open�fcntl�lockf�LOCK_EX�OSError�args�close�IOError�fdopen)�filename�perms�create�fd�flags�err�errno�strerrs �:/usr/lib/python3/dist-packages/SSSDConfig/ipachangeconf.py�
openLockedr s� � � �B��I�I�E�
���
�
�"��
%�
�W�W�X�u�e�
,��
���B��
�
�&� �9�9�R����� � %����
��v�
��8�
��������
��
���e�V�$�$��%�s; �;A: �: C�C �B.�-C �. B:�7C �9B:�:C � Cc � � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zed� � Zdd�Zd� Zdd�Zdd�Zd� Zd� Zd� Zd� Zd� Zd� Zy)�
IPAChangeConfc �� � || _ d| _ d| _ | j d | _ d| _ | j d | _ d| _ | j d | _ d| _ d| _ d| _
y ) N)� r r )z = �=r )�#)�
)�[�])�{�}z.ipabkp)�progname�indent�assign�dassign�comment�dcomment�eol�deol�
sectnamdel�
subsectdel�
backup_suffix��self�names r �__init__zIPAChangeConf.__init__2 sh � ���
�"���"����{�{�1�~���������Q���
�����H�H�Q�K�� �$���$���&��� c � � || _ y �N)r&