Server IP : 111.118.215.189 / Your IP : 3.131.85.46 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:37 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/net/tramp-smb.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'tramp) #@45 Method to connect SAMBA and M$ SMB servers. (defconst tramp-smb-method "smb" (#$ . 573)) (byte-code "\303>\204 \304\305 \306B\"\210\304\307\310\n E\"\210\304\311\312 \313Q\314B\"\210\315\316\317\"\210\320\321\322\323\324\316\325\326&\210\320\327\330\331\324\316\325\332&\207" [system-type tramp-smb-method tramp-prefix-domain-regexp (cygwin windows-nt) add-to-list tramp-methods ((tramp-remote-shell "") (tramp-tmpdir "/C$/Temp")) tramp-default-method-alist nil tramp-default-user-alist "\\`" "\\'" (nil nil) eval-after-load tramp (tramp-set-completion-function tramp-smb-method '((tramp-parse-netrc "~/.netrc"))) custom-declare-variable tramp-smb-program "smbclient" "Name of SMB client to run." :group :type string tramp-smb-conf "/dev/null" "Path of the smb.conf file.\nIf it is nil, no smb.conf will be added to the `tramp-smb-program'\ncall, letting the SMB client use the default one." (choice (const nil) (file :must-match t))] 8) #@35 Version string of the SMB client. (defvar tramp-smb-version nil (#$ . 1521)) #@38 Regexp of SMB server identification. (defconst tramp-smb-server-version "Domain=\\[[^]]*\\] OS=\\[[^]]*\\] Server=\\[[^]]*\\]" (#$ . 1604)) #@51 Regexp used as prompt in smbclient or powershell. (defconst tramp-smb-prompt "^\\(smb:\\|PS\\) .+> \\|^\\s-+Server\\s-+Comment$" (#$ . 1750)) #@48 Regexp for login error strings of SMB servers. (defconst tramp-smb-wrong-passwd-regexp "\\(?:NT_STATUS_\\(?:LOGON_FAILURE\\|WRONG_PASSWORD\\)\\)" (#$ . 1898)) #@102 Regexp for possible error strings of SMB servers. Used instead of analyzing error codes of commands. (defconst tramp-smb-errors (byte-code "\300\301\302\303\304\305\306\307\257\310#\207" [mapconcat identity "Connection\\( to \\S-+\\)? failed" "Read from server failed, maybe it closed the connection" "Call timed out: server did not respond" "\\S-+: command not found" "Server doesn't support UNIX CIFS calls" "\\(?:ERR\\(?:DOS\\|HRD\\|SRV\\|bad\\(?:file\\|pw\\)\\|filexists\\|no\\(?:access\\|mem\\|suchshare\\)\\)\\|NT_STATUS_\\(?:ACC\\(?:ESS_DENIED\\|OUNT_LOCKED_OUT\\)\\|BAD_NETWORK_NAME\\|C\\(?:ANNOT_DELETE\\|ONNECTION_REFUSED\\)\\|D\\(?:IRECTORY_NOT_EMPTY\\|UPLICATE_NAME\\)\\|FILE_IS_A_DIRECTORY\\|I\\(?:MAGE_ALREADY_LOADED\\|O_TIMEOUT\\)\\|LOGON_FAILURE\\|N\\(?:ETWORK_ACCESS_DENIED\\|O\\(?:T_IMPLEMENTED\\|_SUCH_\\(?:FILE\\|USER\\)\\)\\)\\|OBJECT_NAME_\\(?:COLLISION\\|\\(?:INVALI\\|NOT_FOUN\\)D\\)\\|SHARING_VIOLATION\\|TRUSTED_RELATIONSHIP_FAILURE\\|UNSUCCESSFUL\\|WRONG_PASSWORD\\)\\)" "\\|"] 8) (#$ . 2064)) #@124 List of pattern/action pairs. This list is used for login to SMB servers. See `tramp-actions-before-shell' for more info. (defconst tramp-smb-actions-with-share '((tramp-smb-prompt tramp-action-succeed) (tramp-password-prompt-regexp tramp-action-password) (tramp-wrong-passwd-regexp tramp-action-permission-denied) (tramp-smb-errors tramp-action-permission-denied) (tramp-process-alive-regexp tramp-action-process-alive)) (#$ . 3093)) #@124 List of pattern/action pairs. This list is used for login to SMB servers. See `tramp-actions-before-shell' for more info. (defconst tramp-smb-actions-without-share '((tramp-password-prompt-regexp tramp-action-password) (tramp-wrong-passwd-regexp tramp-action-permission-denied) (tramp-smb-errors tramp-action-permission-denied) (tramp-process-alive-regexp tramp-action-out-of-band)) (#$ . 3536)) #@132 List of pattern/action pairs. This list is used for tar-like copy of directories. See `tramp-actions-before-shell' for more info. (defconst tramp-smb-actions-with-tar '((tramp-password-prompt-regexp tramp-action-password) (tramp-wrong-passwd-regexp tramp-action-permission-denied) (tramp-smb-errors tramp-action-permission-denied) (tramp-process-alive-regexp tramp-smb-action-with-tar)) (#$ . 3940)) #@129 Alist of handler functions for Tramp SMB method. Operations not mentioned here will be handled by the default Emacs primitives. (defconst tramp-smb-file-name-handler-alist '((add-name-to-file . tramp-smb-handle-add-name-to-file) (copy-directory . tramp-smb-handle-copy-directory) (copy-file . tramp-smb-handle-copy-file) (delete-directory . tramp-smb-handle-delete-directory) (delete-file . tramp-smb-handle-delete-file) (directory-file-name . tramp-handle-directory-file-name) (directory-files . tramp-smb-handle-directory-files) (directory-files-and-attributes . tramp-handle-directory-files-and-attributes) (dired-call-process . ignore) (dired-compress-file . ignore) (dired-uncache . tramp-handle-dired-uncache) (expand-file-name . tramp-smb-handle-expand-file-name) (file-accessible-directory-p . tramp-smb-handle-file-directory-p) (file-attributes . tramp-smb-handle-file-attributes) (file-directory-p . tramp-smb-handle-file-directory-p) (file-executable-p . tramp-handle-file-exists-p) (file-exists-p . tramp-handle-file-exists-p) (file-local-copy . tramp-smb-handle-file-local-copy) (file-modes . tramp-handle-file-modes) (file-name-all-completions . tramp-smb-handle-file-name-all-completions) (file-name-as-directory . tramp-handle-file-name-as-directory) (file-name-completion . tramp-handle-file-name-completion) (file-name-directory . tramp-handle-file-name-directory) (file-name-nondirectory . tramp-handle-file-name-nondirectory) (file-newer-than-file-p . tramp-handle-file-newer-than-file-p) (file-ownership-preserved-p . ignore) (file-readable-p . tramp-handle-file-exists-p) (file-regular-p . tramp-handle-file-regular-p) (file-remote-p . tramp-handle-file-remote-p) (file-symlink-p . tramp-handle-file-symlink-p) (file-writable-p . tramp-smb-handle-file-writable-p) (find-backup-file-name . tramp-handle-find-backup-file-name) (insert-directory . tramp-smb-handle-insert-directory) (insert-file-contents . tramp-handle-insert-file-contents) (load . tramp-handle-load) (make-directory . tramp-smb-handle-make-directory) (make-directory-internal . tramp-smb-handle-make-directory-internal) (make-symbolic-link . tramp-smb-handle-make-symbolic-link) (process-file . tramp-smb-handle-process-file) (rename-file . tramp-smb-handle-rename-file) (set-file-modes . tramp-smb-handle-set-file-modes) (set-file-times . ignore) (set-visited-file-modtime . ignore) (shell-command . tramp-handle-shell-command) (start-file-process . tramp-smb-handle-start-file-process) (substitute-in-file-name . tramp-smb-handle-substitute-in-file-name) (unhandled-file-name-directory . tramp-handle-unhandled-file-name-directory) (vc-registered . ignore) (verify-visited-file-modtime . ignore) (write-region . tramp-smb-handle-write-region)) (#$ . 4348)) (byte-code "\300\301\302\303\304\305\306\307\310\311& \210\300\312\313\314\304\305\306\307\310\311& \210\300\315\316\317\304\305\306\307\310\311& \207" [custom-declare-variable tramp-smb-winexe-program "winexe" "Name of winexe client to run.\nIf it isn't found in the local $PATH, the absolute path of winexe\nshall be given. This is needed for remote processes." :group tramp :type string :version "24.3" tramp-smb-winexe-shell-command "powershell.exe" "Shell to be used for processes on remote machines.\nThis must be Powershell V2 compatible." tramp-smb-winexe-shell-command-switch "-file -" "Command switch used together with `tramp-smb-winexe-shell-command'.\nThis can be used to disable echo etc."] 10) #@43 Check if it's a filename for SMB servers. (defalias 'tramp-smb-file-name-p #[(filename) "\302\303!! \230\207" [filename tramp-smb-method tramp-file-name-method tramp-dissect-file-name] 3 (#$ . 7811)]) (put 'tramp-smb-file-name-p 'byte-optimizer 'byte-compile-inline-expand) #@130 Invoke the SMB related OPERATION. First arg specifies the OPERATION, second arg is a list of arguments to pass to the OPERATION. (defalias 'tramp-smb-file-name-handler #[(operation &rest args) "\305 \"\211\203 \306 \307\216\310\nA\f\"*\202 \311\f\")\207" [operation tramp-smb-file-name-handler-alist fn save-match-data-internal args assoc match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) apply tramp-run-real-handler] 4 (#$ . 8093)]) (byte-code "\301>\204 \302\303\304\305B\"\210\302\207" [system-type (cygwin windows-nt) add-to-list tramp-foreign-file-name-handler-alist tramp-smb-file-name-p tramp-smb-file-name-handler] 4) #@42 Like `add-name-to-file' for Tramp files. (defalias 'tramp-smb-handle-add-name-to-file #[(filename newname &optional ok-if-already-exists) "\306 \"\204l \307\310!\203 \202 !\311\n!\312\n!\313\n!\314\n!1\315\n!2\n\316\317\320C345\32165\322\323\324\211\325N\326\32743#E!C3475\321\330\331\217\210,\332\326\32743#C\"\210.\307!8\3118!9\3128!:\3138!;\3148!<\3158!=\307 !>\311>!?\312>!@\313>!A\314>!B\315>!C\333!\203\371 >\316\334C345\32165\322\323\324\211\325N\326\32743#E!C3475\321\335\336\217\210,\332\326\32743#C\"\210-D\204T\337 !\203TD\247\204T\340\327\341 \"!\203T>\316\342 C345\32165\322\323\324\211\325N\326\32743#E!C3475\321\343\344\217\210,\332\326\32743#C\"\210-\345>\346B!\"\210\345>B\"\210\3478\327\350\3518!\203t\352\202u\353\3548!\354>!$\"?\205\304>\316\355\356 C345\32165\322\323\324\211\325N\326\32743#E!C3475\321\357\360\217\210,\332\326\32743#C\"-.\f\207" [filename newname v method user host tramp-equal-remote tramp-dissect-file-name tramp-tramp-file-p tramp-file-name-method tramp-file-name-user tramp-file-name-host tramp-file-name-localname tramp-file-name-hop file-error "add-name-to-file: %s" "only implemented for same method, same user, same host" nil 1 "%s" error-message-string error-message apply format (byte-code " X\203~ \306 \307\216\203; \310X\203; \311\312\313U\203! \314\2026 \315U\203+ \314\2026 \316U\2035 \317\2026 \320\fP #\210 \321Y\203} \203d \322!\203d \323\324!!\203d r\324!q\210\325!)\203} \326!\203} \311\327\330\331\"\fP $\210*\306\207" [level tramp-verbose save-match-data-internal tramp-message-show-message fmt-string args match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) 3 apply message 0 #1="" 1 2 #2="Warning: " #3="Tramp: " 4 processp buffer-name process-buffer tramp-dissect-file-name vectorp tramp-debug-message format #4="(%d) # " vec-or-proc default-directory] 6) ((error)) signal file-directory-p "add-name-to-file: %s must not be a directory" (byte-code " X\203~ \306 \307\216\203; \310X\203; \311\312\313U\203! \314\2026 \315U\203+ \314\2026 \316U\2035 \317\2026 \320\fP #\210 \321Y\203} \203d \322!\203d \323\324!!\203d r\324!q\210\325!)\203} \326!\203} \311\327\330\331\"\fP $\210*\306\207" [level tramp-verbose save-match-data-internal tramp-message-show-message fmt-string args match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) 3 apply message 0 #1# 1 2 #2# #3# 4 processp buffer-name process-buffer tramp-dissect-file-name vectorp tramp-debug-message format #4# vec-or-proc default-directory] 6) ((error)) file-exists-p y-or-n-p "File %s already exists; make it a new name anyway? " "add-name-to-file: file %s already exists" (byte-code " X\203~ \306 \307\216\203; \310X\203; \311\312\313U\203! \314\2026 \315U\203+ \314\2026 \316U\2035 \317\2026 \320\fP #\210 \321Y\203} \203d \322!\203d \323\324!!\203d r\324!q\210\325!)\203} \326!\203} \311\327\330\331\"\fP $\210*\306\207" [level tramp-verbose save-match-data-internal tramp-message-show-message fmt-string args match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) 3 apply message 0 #1# 1 2 #2# #3# 4 processp buffer-name process-buffer tramp-dissect-file-name vectorp tramp-debug-message format #4# vec-or-proc default-directory] 6) ((error)) tramp-flush-file-property file-name-directory tramp-smb-send-command "%s \"%s\" \"%s\"" tramp-smb-get-cifs-capabilities "link" "hardlink" tramp-smb-get-localname "error with add-name-to-file, see buffer `%s' for details" buffer-name (byte-code " X\203~ \306 \307\216\203; \310X\203; \311\312\313U\203! \314\2026 \315U\203+ \314\2026 \316U\2035 \317\2026 \320\fP #\210 \321Y\203} \203d \322!\203d \323\324!!\203d r\324!q\210\325!)\203} \326!\203} \311\327\330\331\"\fP $\210*\306\207" [level tramp-verbose save-match-data-internal tramp-message-show-message fmt-string args match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) 3 apply message 0 #1# 1 2 #2# #3# 4 processp buffer-name process-buffer tramp-dissect-file-name vectorp tramp-debug-message format #4# vec-or-proc default-directory] 6) ((error)) localname hop args fmt-string vec-or-proc tramp-message-show-message level v1 v1-method v1-user v1-host v1-localname v1-hop v2 v2-method v2-user v2-host v2-localname v2-hop ok-if-already-exists] 10 (#$ . 8781)]) #@31 Untar from connection buffer. (defalias 'tramp-smb-action-with-tar #[(proc vec) "\306!\307>\204 \310\311\312\"\207r\313 !q\210eb\210\314\n\315\316#\205<