403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/print/system-config-printer/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/print/system-config-printer/files/patch-newprinter.py
--- newprinter.py.orig	2019-11-19 17:32:12.439573000 -0400
+++ newprinter.py	2019-11-19 17:37:00.087735000 -0400
@@ -1163,7 +1163,7 @@
                 if (self.device.id and
                     not self.device.type in ("socket", "lpd", "ipp",
                                              "http", "https", "bluetooth")):
-                    name = "%s %s" % (self.device.id_dict["MFG"], 
+                    name = "%s %s" % (self.device.id_dict["MFG"],
                                       self.device.id_dict["MDL"])
             except:
                 nonfatalException ()
@@ -1411,7 +1411,7 @@
         # Does the backend need to be installed?
         if (self.nextnptab_rerun == False and not self.searchedfordriverpackages and
                (self._host == 'localhost' or self._host[0] == '/') and
-               not os.access ("/usr/lib/cups/backend/smb", os.F_OK)):
+               not os.access ("%%PREFIX%%/libexec/cups/backend/smb", os.F_OK)):
             debugprint ("No smb backend so attempting install")
             try:
                 pk = installpackage.PackageKit ()
@@ -2174,7 +2174,7 @@
                 host = device.uri[s:s+e]
         # Try to get make and model via SNMP
         if host:
-            args = ["/usr/lib/cups/backend/snmp", host]
+            args = ["%%PREFIX%%/libexec/cups/backend/snmp", host]
             debugprint (host + ": " + repr(args))
             stdout = None
             try:
@@ -2382,7 +2382,7 @@
                     else:
                         device2.uri = "delete"
         devices = [x for x in devices if x.uri not in ("hp", "hpfax",
-                                                       "hal", "beh", "smb", 
+                                                       "hal", "beh", "smb",
                                                        "scsi", "http", "bjnp",
                                                        "delete")]
         newdevices = []
@@ -4212,7 +4212,7 @@
                 try:
                     # We want this to be in the current natural language,
                     # so we intentionally don't set LC_ALL=C here.
-                    p = subprocess.Popen (['/usr/bin/cupstestppd',
+                    p = subprocess.Popen (['%%PREFIX%%/bin/cupstestppd',
                                            '-rvv', filename],
                                           close_fds=True,
                                           stdin=subprocess.DEVNULL,

Youez - 2016 - github.com/yon3zu
LinuXploit