HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/clcommon/__pycache__/clcaptain.cpython-37.pyc
B

�Z�����@s~ddlmZddlmZddlmZddlZddlZddlmZmZddl	m
Z
dZddd	�Zddd
�Z
ddd�Zdd�ZdS)�)�absolute_import)�division)�print_functionN)�Popen�PIPE)�ExternalProgramFailedz"/usr/share/python-cllib/cl.captainc
Cs�y
|�Wn�ttfk
r�}z�|jtjkr�t��dkr�tgdd�|D�}t||dkr\dntttdd�}|dkr�|�	�\}}n|�	|�\}}|j
dkr�t|p�dd�|�|f��n�Wdd}~XYnXdS)NrcSsg|]}t|��qS�)�str)�.0�srr��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.1-1.el9.cloudlinux.x86_64/opt/alt/python37/lib/python3.7/site-packages/clcommon/clcaptain.py�
<listcomp>szcaptain.<locals>.<listcomp>T)�stdin�stdout�stderr�textzoutput of "%s": %s� )
�OSError�IOError�errnoZEDQUOT�os�geteuid�CAPTAIN_PATHrrZcommunicate�
returncoder�join)�do_try�cmdr�eZcommand�outputZstd_outZstd_errrrr�captains

r��Fcs�t�d�}|rdd�xp��d�D]@}tj��|��tj���r>qt��fdd�d�dd�g�qWn t��fdd�d�dd�g�t�|�dS)	Nr�/cst����S)N)r�mkdirr)�	collector�moderr�<lambda>/�zmkdir.<locals>.<lambda>z-dz-mz%ocst����S)N)rr"r)r$�pathrrr%1r&)r�umask�splitr'r�existsr)r'r$�	recursiver(Zsubdirr)r#r$r'rr"'s
& r"�cs"��fdd�}t|d�g��dS)Nc	s:t�d��&}|���|��t�|���WdQRXdS)N�w)�open�write�flushr�fsync�fileno)�fp)�contentr'rrr6s
zwrite.<locals>.do_tryz-f)r)r'r4rr)r4r'rr/5sr/cs t��fdd�d�d�g�dS)Ncst����S)N)r�symlinkr)�dst�srcrrr%@r&zsymlink.<locals>.<lambda>z-lz-s)r)r7r6r)r6r7rr5?sr5)N)r F)r,)Z
__future__rrrrr�
subprocessrrZclcommon.utilsrrrr"r/r5rrrr�<module>	s