Quellcode durchsuchen

check_disk: Resolves #491 (and reverts c6d5d5e2e88e004d10ab03fe5cf70a322dbf974c) in such a way that the resulting code doesn't look like a mistake. -L is intended as a superset of -l according to the helptext of the plugin.

madlohe vor 6 Jahren
Ursprung
Commit
a725cb0b8c
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      plugins/check_disk.c

+ 2 - 1
plugins/check_disk.c

@@ -832,8 +832,9 @@ process_arguments (int argc, char **argv)
         free(units);
       units = strdup ("MB");
       break;
-    case 'L':
+    case 'L': /* show local filesystems, but stat remote filesystems for accessibility */
       stat_remote_fs = 1;
+      show_local_fs = 1;
       break;
     case 'l':
       show_local_fs = 1;