Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Imspector on 1.2.1* - patch (works for me!)

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Bern
      last edited by

      Hi,

      I've had a problem with imspector for quite a few months' use of 1.2.1 (and its RCs). It may affect other versions but I only use the 1.2.1 stream.

      The list of users in the imspector viewer often has "undefined" in the list. I patched /usr/local/www/services_imspector_logs.php with this:

      64,73c64,70
      < if ($dh = opendir($topdir)) {
      < while (($file = readdir($dh)) !== false) {
      < if(!preg_match('/^./', $file) == 0) continue;
      < if (is_dir("$topdir/$file")) {
      < $list .= convert_dir_list("$topdir/$file");
      < } else {
      < $list .= "$topdir/$file\n";
      < }
      < }
      < closedir($dh);
      –-

      $list = array();

      $p = popen("/usr/bin/find $topdir -type f -depth 4 -print | /usr/bin/sort", "r");

      while (!feof($p)) {
      $list[] = fgets($p, 256);
      75c72,75
      < return $list;


      pclose($p);

      return implode("\n", $list);

      I'd be grateful if anybody else could test this and see if it works for them too.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.