403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.116
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/net-mgmt/rrdbot/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net-mgmt/rrdbot/files/patch-parse.c
--- mib/parse.c.orig	2007-05-26 17:42:33.000000000 -0700
+++ mib/parse.c	2008-09-18 10:42:58.000000000 -0700
@@ -4516,20 +4516,17 @@
 int
 add_mibdir(const char *dirname)
 {
-    FILE           *fp, *ip;
+    FILE           *fp;
     DIR            *dir, *dir2;
     const char     *oldFile = File;
     struct dirent  *file;
     char            token[MAXTOKEN], token2[MAXTOKEN];
-    char            tmpstr[300];
+    char            tmpstr[MAXPATHLEN];
     int             count = 0;
 
     DEBUGMSGTL(("parse-mibs", "Scanning directory %s\n", dirname));
 
     if ((dir = opendir(dirname))) {
-        snprintf(tmpstr, sizeof(tmpstr), "%s/.index", dirname);
-        tmpstr[ sizeof(tmpstr)-1 ] = 0;
-        ip = fopen(tmpstr, "w");
         while ((file = readdir(dir))) {
             /*
              * Only parse file names not beginning with a '.' 
@@ -4561,8 +4558,6 @@
                     if (get_token(fp, token2, MAXTOKEN) == DEFINITIONS) {
                         new_module(token, tmpstr);
                         count++;
-                        if (ip)
-                            fprintf(ip, "%s %s\n", token, file->d_name);
                     }
                     fclose(fp);
                 }
@@ -4570,8 +4565,6 @@
         }
         File = oldFile;
         closedir(dir);
-        if (ip)
-            fclose(ip);
         return (count);
     }
     return (-1);

Youez - 2016 - github.com/yon3zu
LinuXploit