One Hat Cyber Team
Your IP :
10.30.1.1
Server IP :
103.148.201.5
Server :
Linux web-olt 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
Server Software :
Apache/2.4.52 (Ubuntu)
PHP Version :
8.1.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
ovs
/
__pycache__
/
Edit File:
util.cpython-310.pyc
o ��e0 � @ sT d dl Z d dlZ d dlZe j�ejd �ZdZdd� Zdd� Z ddd�Z d d � ZdS )� N���c C sl |� d�s|�d�dkr|S | du s| dkr'zt�� } W n ty& Y dS w | �d�r0| | S d| |f S )a� If 'file_name' starts with '/', returns a copy of 'file_name'. Otherwise, returns an absolute path to 'file_name' considering it relative to 'dir_', which itself must be absolute. 'dir_' may be None or the empty string, in which case the current working directory is used. Returns None if 'dir_' is None and getcwd() fails. This differs from os.path.abspath() in that it will never change the meaning of a file name. On Windows an absolute path contains ':' ( i.e: C:\ ) �/�:r N� z%s/%s)� startswith�find�os�getcwd�OSError�endswith)�dir_� file_name� r �*/usr/lib/python3/dist-packages/ovs/util.py� abs_file_name s � r c C s. | sdS | dkr t �| �S | tkrdS d| S )z�Many OVS functions return an int which is one of: - 0: no error yet - >0: errno value - EOF: end of file (not necessarily an error; depends on the function called) Returns the appropriate human-readable string.r r zEnd of filez***unknown return value: %s***)r �strerror�EOF)�retvalr r r �ovs_retval_to_string2 s r c C sF dt |f }| r|dt| � 7 }tj�d| � |r!|�|� dS dS )a6 Prints 'message' on stderr and emits an ERROR level log message to 'vlog' if supplied. If 'err_no' is nonzero, then it is formatted with ovs_retval_to_string() and appended to the message inside parentheses. 'message' should not end with a new-line, because this function will add one itself.z%s: %sz (%s)z%s N)�PROGRAM_NAMEr �sys�stderr�write�err)�err_no�message�vlog�err_msgr r r � ovs_errorD s �r c O s t | i |�� t�d� dS )at Prints 'message' on stderr and emits an ERROR level log message to 'vlog' if supplied. If 'err_no' is nonzero, then it is formatted with ovs_retval_to_string() and appended to the message inside parentheses. Then, terminates with exit code 1 (indicating a failure). 'message' should not end with a new-line, because this function will add one itself.� N)r r �exit)�args�kwargsr r r � ovs_fatalU s r# )N)r �os.pathr �path�basename�argvr r r r r r# r r r r �<module> s
Simpan