https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/sos_extras.cpython-310.pyc
o

-�_g��@s6ddlZddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPluginc@s(eZdZdZ	dZdZefZdd�ZdS)�	SosExtrasz/Collect extra data defined in /etc/sos/extras.d�
sos_extrasz/etc/sos/extras.d/cCs�z&t�|j�}|jdks|jtj@s|jtj@r%|�d|j�d��WdSWnty:|�d|j�d��YdSwt�	|j�D]�\}}}|D]�}|�
||�}|�d|���ztt|ddd	��c}|���
�D]T}t|���dksv|�d
�rwqg|�d�r�|��}	d}
t|	�dkr�zt|	d�}
Wnty�|�d
|�d|�d��Ynw|j|	ddd�|
d�qg|j||d�qgWd�n1s�wYWqHty�|�d|���YqHwqAdS)NrzSkipping sos extras as z' has too wide permissions or ownership.zcan't stat z, skipping sos extrasz!Collecting data from extras file �rzUTF-8)�encoding�#�:�zCan't decode size limit on linez in z, using default)�	sizelimit)�subdirzunable to read extras file )�os�stat�
extras_dir�st_uid�st_mode�S_IWGRP�S_IWOTH�	_log_warn�OSError�walk�	path_join�open�read�
splitlines�len�split�
startswith�int�
ValueError�
add_copy_spec�add_cmd_output�IOError)�self�st_res�path�_�filelist�file�_file�sfile�line�words�limit�r.�?/usr/lib/python3/dist-packages/sos/report/plugins/sos_extras.py�setup.s`
���
�����������zSosExtras.setupN)�__name__�
__module__�__qualname__�
short_desc�plugin_namer�filesr0r.r.r.r/rsr)r
r�sos.report.pluginsrrrr.r.r.r/�<module>s

https://t.me/RX1948 - 2025