...
|
...
|
@@ -807,7 +807,6 @@ onas_fan_checkowner (int pid, const struct optstruct *opts)
|
807
|
807
|
{
|
808
|
808
|
char path[32];
|
809
|
809
|
STATBUF sb;
|
810
|
|
- int num_arg;
|
811
|
810
|
const struct optstruct *opt = NULL;
|
812
|
811
|
const struct optstruct *opt_root = NULL;
|
813
|
812
|
|
...
|
...
|
@@ -817,8 +816,10 @@ onas_fan_checkowner (int pid, const struct optstruct *opts)
|
817
|
817
|
}
|
818
|
818
|
|
819
|
819
|
/* check to see if we even need to stat /proc */
|
|
820
|
+ opt = optget (opts, "OnAccessExcludeUID");
|
|
821
|
+ opt_root = optget (opts, "OnAccessExcludeRootUID");
|
820
|
822
|
|
821
|
|
- if (!(opt = optget (opts, "OnAccessExcludeUID"))->enabled && !(opt_root = optget (opts, "OnAccessExcludeRootUID"))->enabled)
|
|
823
|
+ if (!(opt->enabled || opt_root->enabled))
|
822
|
824
|
return 0;
|
823
|
825
|
|
824
|
826
|
/* if we can stat OK */
|