Server IP : 111.118.215.189 / Your IP : 18.188.23.45 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/net/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:10:29 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/net/ange-ftp.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307\306\310\311\312& \210\313\314\315\316\306\303\317\320&\207" [require comint custom-declare-group ange-ftp nil "Accessing remote files and directories using FTP." :group files comm :prefix "ange-ftp-" custom-declare-variable ange-ftp-name-format '("\\`/\\(\\([^/:]*\\)@\\)?\\([^@/:]*[^@/:.]\\):\\(.*\\)" 3 2 4) "Format of a fully expanded remote file name.\n\nThis is a list of the form (REGEXP HOST USER NAME),\nwhere REGEXP is a regular expression matching\nthe full remote name, and HOST, USER, and NAME are the numbers of\nparenthesized expressions in REGEXP for the components (in that order)." :type (list (regexp :tag "Name regexp") (integer :tag "Host group") (integer :tag "User group") (integer :tag "Name group"))] 10) #@65 Regular expression matching the start of a multiline FTP reply. (defvar ange-ftp-multi-msgs "^150-\\|^220-\\|^230-\\|^226\\|^25.-\\|^221-\\|^200-\\|^331-\\|^4[25]1-\\|^530-" (#$ . 1335)) #@53 Regular expression matching FTP "success" messages. (defvar ange-ftp-good-msgs "^220 \\|^230 \\|^226 \\|^25. \\|^221 \\|^200 \\|^[Hh]ash mark" (#$ . 1528)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\305\306\307&\210\300\313\314\315\304\305\306\307&\210\300\316\317\320\304\305\306\307&\210\300\321\322\323\304\305\306\307&\210\300\324\325\326\304\305\306\327&\210\300\330\331\332\304\305\306\327&\210\300\333\334\335\304\305\306\336&\210\300\337\340\341\304\305\306\342&\210\300\343\344\345\304\305\306\346&\210\300\347\344\350\304\305\306\351&\210\300\352\344\353\304\305\306\354&\210\300\355\344\356\304\305\306\357&\210\300\360\344\361\304\305\306\362&\210\300\363\344\364\304\305\306\365&\210\300\366\367\370\304\305\306\371&\210\300\372\344\373\304\305\306\374&\210\300\375\376\377\304\305\306\307\201@ \201A & \210\300\201B \344\201C \304\305\306\201D &\210\300\201E \201F \201G \304\305\306\307&\210\300\201H \344\201I \304\305\306\342&\210\300\201J \201K \201L \304\305\306\201M &\210\300\201N \201O \201P \304\305\306\307&\207" [custom-declare-variable ange-ftp-skip-msgs (concat "^200 \\(PORT\\|Port\\) \\|^331 \\|^150 \\|^350 \\|^[0-9]+ bytes \\|" "^Connected \\|^$\\|^Remote system\\|^Using\\|^ \\|Password:\\|" "^Data connection \\|" "^local:\\|^Trying\\|^125 \\|^550-\\|^221 .*oodbye\\|" "^500 .*AUTH\\|^KERBEROS\\|" "^504 Unknown security mechanism\\|" "^530 Please login with USER and PASS\\|" "^534 Kerberos Authentication not enabled\\|" "^22[789] .*[Pp]assive\\|^200 EPRT\\|^500 .*EPRT") "Regular expression matching FTP messages that can be ignored." :group ange-ftp :type regexp ange-ftp-fatal-msgs (concat "^ftp: \\|^Not connected\\|^530 \\|^4[25]1 \\|rcmd: \\|" "^No control connection\\|unknown host\\|^lost connection") "Regular expression matching FTP messages that indicate serious errors.\n\nThese mean that the FTP process should be (or already has been) killed." ange-ftp-potential-error-msgs "^ftp: connect to address .*: No route to host" "Regular expression matching FTP messages that can indicate serious errors.\nThese mean that something went wrong, but they may be followed by more\nmessages indicating that the error was somehow corrected." ange-ftp-gateway-fatal-msgs "No route to host\\|Connection closed\\|No such host\\|Login incorrect" "Regular expression matching login failure messages from rlogin/telnet." ange-ftp-xfer-size-msgs "^150 .* connection for .* (\\([0-9]+\\) bytes)" "Regular expression used to determine the number of bytes in a FTP transfer." ange-ftp-tmp-name-template (expand-file-name "ange-ftp" temporary-file-directory) "Template used to create temporary files." directory ange-ftp-gateway-tmp-name-template "/tmp/ange-ftp" "Template used to create temporary files when FTP-ing through a gateway.\n\nFiles starting with this prefix need to be accessible from BOTH the local\nmachine and the gateway machine, and need to have the SAME name on both\nmachines, that is, /tmp is probably NOT what you want, since that is rarely\ncross-mounted." ange-ftp-netrc-filename "~/.netrc" "File in .netrc format to search for passwords." file ange-ftp-disable-netrc-security-check (eq system-type 'windows-nt) "If non-nil avoid checking permissions on the .netrc file." boolean ange-ftp-default-user nil "User name to use when none is specified in a file name.\n\nIf non-nil but not a string, you are prompted for the name.\nIf nil, the value of `ange-ftp-netrc-default-user' is used.\nIf that is nil too, then your login name is used.\n\nOnce a connection to a given host has been initiated, the user name\nand password information for that host are cached and re-used by\nange-ftp. Use \\[ange-ftp-set-user] to change the cached values,\nsince setting `ange-ftp-default-user' directly does not affect\nthe cached information." (choice (const :tag "Default" nil) string (other :tag "Prompt" t)) ange-ftp-netrc-default-user "Alternate default user name to use when none is specified.\n\nThis variable is set from the `default' command in your `.netrc' file,\nif there is one." (choice (const :tag "Default" nil) string) ange-ftp-default-password "Password to use when the user name equals `ange-ftp-default-user'." (choice (const :tag "Default" nil) string) ange-ftp-default-account "Account to use when the user name equals `ange-ftp-default-user'." (choice (const :tag "Default" nil) string) ange-ftp-netrc-default-password "Password to use when the user name equals `ange-ftp-netrc-default-user'." (choice (const :tag "Default" nil) string) ange-ftp-netrc-default-account "Account to use when the user name equals `ange-ftp-netrc-default-user'." (choice (const :tag "Default" nil) string) ange-ftp-generate-anonymous-password t "If t, use value of `user-mail-address' as password for anonymous FTP.\n\nIf a string, then use that string as the password.\nIf nil, prompt the user for a password." (choice (const :tag "Prompt" nil) string (other :tag "User address" t)) ange-ftp-dumb-unix-host-regexp "If non-nil, regexp matching hosts on which `dir' command lists directory." (choice (const :tag "Default" nil) string) ange-ftp-binary-file-name-regexp "" "If a file matches this regexp then it is transferred in binary mode." :version "24.1" ange-ftp-gateway-host "Name of host to use as gateway machine when local FTP isn't possible." (choice (const :tag "Default" nil) string) ange-ftp-local-host-regexp ".*" "Regexp selecting hosts which can be reached directly with FTP.\n\nFor other hosts the FTP process is started on `ange-ftp-gateway-host'\ninstead, and/or reached via `ange-ftp-gateway-ftp-program-name'." ange-ftp-gateway-program-interactive "If non-nil then the gateway program should give a shell prompt.\n\nBoth telnet and rlogin do something like this." ange-ftp-gateway-program remote-shell-program "Name of program to spawn a shell on the gateway machine.\n\nValid candidates are rsh (remsh on some systems), telnet and rlogin.\nSee also the gateway variable above." (choice (const "rsh") (const "telnet") (const "rlogin") string) ange-ftp-gateway-prompt-pattern "^[^#$%>;\n]*[#$%>;] *" "Regexp matching prompt after complete login sequence on gateway machine.\n\nA match for this means the shell is now awaiting input. Make this regexp as\nstrict as possible; it shouldn't match *anything* at all except the user's\ninitial prompt. The above string will fail under most SUN-3's since it\nmatches the login banner."] 10) #@172 Set up terminal after logging in to the gateway machine. This command should stop the terminal from echoing each command, and arrange to strip out trailing ^M characters. (defvar ange-ftp-gateway-setup-term-command (byte-code "\301=\203 \302\207\303\207" [system-type hpux "stty -onlcr -echo\n" "stty -echo nl\n"] 2) (#$ . 7977)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\305\306\313&\210\300\314\315\316\304\305\306\307&\210\300\317\302\320\304\305\306\321&\210\300\322\323\324\304\305\306\325&\210\300\326\315\327\304\305\306\307&\210\300\330\331\332\304\305\306\313&\210\300\333\331\334\304\305\306\313&\210\300\335\336\337\304\305\306\340&\210\300\341\302\342\304\305\306\343&\210\300\344\302\345\304\305\306\307&\210\300\346\347\350\304\305\306\325&\210\300\351\352\353\304\305\306\354&\210\300\355\302\356\304\305\306\307\357\360& \210\300\361\302\362\304\305\306\363\357\364& \210\365\366!\207" [custom-declare-variable ange-ftp-smart-gateway nil "Non-nil says the FTP gateway (proxy) or gateway FTP program is smart.\n\nDon't bother telnetting, etc., already connected to desired host transparently,\nor just issue a user@host command in case `ange-ftp-gateway-host' is non-nil.\nSee also `ange-ftp-smart-gateway-port'." :group ange-ftp :type boolean ange-ftp-smart-gateway-port "21" "Port on gateway machine to use when smart gateway is in operation." string ange-ftp-send-hash t "If non-nil, send the HASH command to the FTP client." ange-ftp-binary-hash-mark-size "Default size, in bytes, between hash-marks when transferring a binary file.\nIf nil, this variable will be locally overridden if the FTP client outputs a\nsuitable response to the HASH command. If non-nil, this value takes\nprecedence over the local value." (choice (const :tag "Overridden" nil) integer) ange-ftp-ascii-hash-mark-size 1024 "Default size, in bytes, between hash-marks when transferring an ASCII file.\nThis variable is buffer-local and will be locally overridden if the FTP client\noutputs a suitable response to the HASH command." integer ange-ftp-process-verbose "If non-nil then be chatty about interaction with the FTP process." ange-ftp-ftp-program-name "ftp" "Name of FTP program to run." ange-ftp-gateway-ftp-program-name "Name of FTP program to run when accessing non-local hosts.\n\nSome AT&T folks claim to use something called `pftp' here." ange-ftp-ftp-program-args '("-i" "-n" "-g" "-v") "A list of arguments passed to the FTP program when started." (repeat string) ange-ftp-nslookup-program "If non-nil, this is a string naming the nslookup program." (choice (const :tag "None" nil) string) ange-ftp-make-backup-files "Non-nil means make backup files for \"magic\" remote files." ange-ftp-retry-time 5 "Number of seconds to wait before retry if file or listing doesn't arrive.\nThis might need to be increased for very slow connections." ange-ftp-auto-save 0 "If 1, allow ange-ftp files to be auto-saved.\nIf 0, inhibit auto-saving of ange-ftp files.\nDon't use any other value." (choice (const :tag "Suppress" 0) (const :tag "Allow" 1)) ange-ftp-try-passive-mode "If t, try to use passive mode in FTP, if the client program supports it." :version "21.1" ange-ftp-passive-host-alist "Alist of FTP servers that need \"passive\" mode.\nEach element is of the form (HOSTNAME . SETTING).\nHOSTNAME is a regular expression to match the FTP server host name(s).\nSETTING is \"on\" to turn passive mode on, \"off\" to turn it off,\nor nil meaning don't change it." (repeat (cons regexp (choice (const :tag "On" "on") (const :tag "Off" "off") (const :tag "Don't change" nil)))) "22.1" require backquote] 10) #@62 Return whether there is an association for KEY in table TBL. (defalias 'ange-ftp-hash-entry-exists-p #[(key tbl) "\205\f \302 \303#\303=?\207" [tbl key gethash unknown] 4 (#$ . 11633)]) #@71 Return a sorted list of all the active keys in table TBL, as strings. (defalias 'ange-ftp-hash-table-keys #[(tbl) "\301\302\303\"\304\"\207" [tbl sort all-completions "" string-lessp] 4 (#$ . 11827)]) #@71 Buffer name to hold directory listing data received from FTP process. (defvar ange-ftp-data-buffer-name " *ftp data*" (#$ . 12035)) #@60 Last modified time of the netrc file from file-attributes. (defvar ange-ftp-netrc-modtime nil (#$ . 12173)) #@59 Hash table holding associations between HOST, USER pairs. (defvar ange-ftp-user-hashtable (make-hash-table :test 'equal) (#$ . 12287)) #@101 Mapping between a HOST, USER pair and a PASSWORD for them. All HOST values should be in lower case. (defvar ange-ftp-passwd-hashtable (make-hash-table :test 'equal) (#$ . 12429)) #@69 Mapping between a HOST, USER pair and an ACCOUNT password for them. (defvar ange-ftp-account-hashtable (make-hash-table :test 'equal) (#$ . 12614)) #@64 Hash table for storing directories and their respective files. (defvar ange-ftp-files-hashtable (make-hash-table :test 'equal :size 97) (#$ . 12768)) #@62 Hash table for storing file names and their "inode numbers". (defvar ange-ftp-inodes-hashtable (make-hash-table :test 'equal :size 97) (#$ . 12924)) #@69 Next "inode number" value. We give each file name a unique number. (defvar ange-ftp-next-inode-number 1 (#$ . 13079)) #@41 Last set of args used by `ange-ftp-ls'. (defvar ange-ftp-ls-cache-lsargs nil (#$ . 13204)) #@36 Last file passed to `ange-ftp-ls'. (defvar ange-ftp-ls-cache-file nil (#$ . 13301)) #@42 Last result returned from `ange-ftp-ls'. (defvar ange-ftp-ls-cache-res nil (#$ . 13391)) (defconst ange-ftp-expand-dir-hashtable (make-hash-table :test 'equal)) (defconst ange-ftp-expand-dir-regexp "^5.0 \\([^: ]+\\):") (defvar ange-ftp-hash-mark-unit nil) (defvar ange-ftp-hash-mark-count nil) (defvar ange-ftp-xfer-size nil) (defvar ange-ftp-process-string nil) (defvar ange-ftp-process-result-line nil) (defvar ange-ftp-pending-error-line nil) (defvar ange-ftp-process-busy nil) (defvar ange-ftp-process-result nil) (defvar ange-ftp-process-multi-skip nil) (defvar ange-ftp-process-msg nil) (defvar ange-ftp-process-continue nil) (defvar ange-ftp-last-percent nil) (put 'ftp-error 'error-conditions '(ftp-error file-error error)) #@133 Display message in echo area, but indicate if truncated. Args are as in `message': a format string, plus arguments to be formatted. (defalias 'ange-ftp-message #[(fmt &rest args) "\305\306 #\307\310 !\f\203 \202'