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__/clquota.cpython-37.pyc
B

`,��8tO�@sxddlmZddlmZddlmZddlZddlZddlmZddlm	Z	m
Z
mZe�d�Z
deeed	�d
d�ZdS)
�)�absolute_import)�division)�print_functionN)�Optional)�get_mount_point�run_command�ExternalProgramFailedzuser quota on .+ \(.+\) is on�/home)�path�returnc
Cs�tj�d�sdSyt|�}Wn,ttfk
rH}z
d|��Sd}~XYnXydd|g}t|�}Wn*tk
r�}zt|�}Wdd}~XYnX|��}t	�
|�s�|SdS)z�
    Check if quotas enabled and initialised for specific path
    :return: string message with giagnostick information if disabled; None if enabled
    z
/sbin/quotaonzPackage "quota" not installedz$Error during mount point detection:
Nz-up)�osr
�isfiler�OSErrorrr�str�strip�USER_QUOTA_ON_PATTERN�search)r
Zmount_point�eZquotaon_cmdZquotaon_output�r��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.1-1.el9.cloudlinux.x86_64/opt/alt/python37/lib/python3.7/site-packages/clcommon/clquota.py�check_quota_enableds

r)r	)Z
__future__rrr�rer�typingrZclcommon.utilsrrr�compilerrrrrrr�<module>	s