ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib64/python2.7/Tools/scripts/treesync.pyo
ó
fc@sÈdZddlZddlZddlZddlZdZdZdadada	d„Z
d„Zd„ZdZ
d„Zd„Zd
„Zdddd„Zdd„ZedkrÄe
ƒndS(s†Script to synchronize two source trees.

Invoke with two arguments:

python treesync.py slave master

The assumption is that "master" contains CVS administration while
slave doesn't.  All files in the slave tree that have a CVS/Entries
entry in the master tree are synchronized.  This means:

    If the files differ:
        if the slave file is newer:
            normalize the slave file
            if the files still differ:
                copy the slave to the master
        else (the master is newer):
            copy the master to the slave

    normalizing the slave means replacing CRLF with LF when the master
    doesn't use CRLF

iÿÿÿÿNtasktyestnocCs)tjtjddƒ\}}x³|D]«\}}|dkrGd}n|dkr\d}n|dkrq|an|dkr†|an|d	kr›|an|d
kr°|}n|dkr&|}aaaq&q&Wy|\}}Wn0tk
rdGtjd
p	dGdGdGHdSXt||ƒdS(Nisnym:s:d:f:a:s-yRs-nRs-ss-ms-ds-fs-as
usage: pythonistreesync.pys5[-n] [-y] [-m y|n|a] [-s y|n|a] [-d y|n|a] [-f n|y|a]sslavedir masterdir(tgetopttsystargvtwrite_slavetwrite_mastertcreate_directoriest
ValueErrortprocess(toptstargstotatdefault_answertcreate_filestslavetmaster((s./usr/lib64/python2.7/Tools/scripts/treesync.pytmain#s0						
cCsYtjj|dƒ}tjj|ƒs9dG|GHdGHdSddGHdG|GHdG|GHtjj|ƒsãtd|d	tƒs’dG|GHd
G|GHdSdG|GHytj|ƒWn(tjk
rÖ}dG|Gd
G|GHdSXdG|GHnd}g}tj	|ƒ}xˆ|D]€}tjj||ƒ}tjj||ƒ}|dkrJ|}qtjj|ƒrtjj
|ƒr|j||fƒqqW|r1tjj|dƒ}	xŠt|	ƒj
ƒD]s}
|
jdƒ}|ddkr·|dr·|d}tjj||ƒ}tjj||ƒ}
t||
ƒq·q·Wnx!|D]\}}
t||
ƒq8WdS(NtCVSsskipping master subdirectorys-- not under CVSt-i(sslave Rscreate slave directory %s?tanswers-- no corresponding slavescreating slave directoryscan't make slave directoryt:smade slave directorytEntriest/iti(tostpathtjointisdirtokayRtmkdirterrortNonetlistdirtislinktappendtopent	readlinestsplittcompareR
(RRtcvsdirtmsgtsubdirstnamestnamet
masternamet	slavenametentriestetwordststm((s./usr/lib64/python2.7/Tools/scripts/treesync.pyR
?sT				
				
	%
cCsªyt|dƒ}Wntk
r,d}nXyt|dƒ}Wntk
rYd}nX|s“|ssdG|GHdSdG|GHt||dtƒdS|s¦dG|GHdS|rÈ|rÈt||ƒrÈdSnt|ƒ}t|ƒ}||kr)|jƒ|jƒdG|GHdG|GHt||dtƒdSd	G||Gd
GH|j	dƒt
|ƒ}|jƒ|jƒ|r‹dGHt||ddtƒnd
GHt||ddtƒdS(NtrtrbsNeither master nor slave existssCreating missing slaveRsNot updating missing mastersMaster             sis newer than slavesSlave issseconds newer than masteris#***UPDATING MASTER (BINARY COPY)***s***UPDATING MASTER***(R&tIOErrorR"tcopyRt	identicaltmtimetcloseRtseekt
funnycharsR(RRtsftmftsfttmfttfun((s./usr/lib64/python2.7/Tools/scripts/treesync.pyR)msP



			

		


iicCsCx<|jtƒ}|jtƒ}||kr1dS|sPqqWdS(Nii(treadtBUFSIZE(R?R@tsdtmd((s./usr/lib64/python2.7/Tools/scripts/treesync.pyR:scCs tj|jƒƒ}|tjS(N(RtfstattfilenotstattST_MTIME(tftst((s./usr/lib64/python2.7/Tools/scripts/treesync.pyR;¥scCs@x9|jtƒ}|sPnd|ks4d|krdSqWdS(Ns
sii(RDRE(RLtbuf((s./usr/lib64/python2.7/Tools/scripts/treesync.pyR>©sR7twbcCsˆdG|GHdG|GHtd|ƒs%dSt||ƒ}t||ƒ}x*|jtƒ}|s_Pn|j|ƒqFW|jƒ|jƒdS(Ntcopyings     tosokay to copy? (RR&RDREtwriteR<(tsrctdsttrmodetwmodeRRLtgRN((s./usr/lib64/python2.7/Tools/scripts/treesync.pyR9°s		
cCs|jƒjƒ}|s)|ddkrYt|ƒ}|jƒjƒ}|sYt}qYn|d dkrmdS|d dkrdSdGHt|ƒS(NitnyitytnsYes or No please -- try again:(tstriptlowert	raw_inputRR(tpromptR((s./usr/lib64/python2.7/Tools/scripts/treesync.pyR¾st__main__i@(t__doc__RRRJRRRRRRRR
R)RER:R;R>R9Rt__name__(((s./usr/lib64/python2.7/Tools/scripts/treesync.pyt<module>s"0		.	.