forked from pool/psmisc
24 lines
575 B
Diff
24 lines
575 B
Diff
--- src/fuser.c
|
|
+++ src/fuser.c 2008-09-01 15:03:05.054239318 +0200
|
|
@@ -925,8 +925,10 @@ int main(int argc, char *argv[])
|
|
continue;
|
|
}
|
|
|
|
- scan_mount_devices(opts, &mount_devices);
|
|
- fill_unix_cache(&unixsockets);
|
|
+ if (!mount_devices)
|
|
+ scan_mount_devices(opts, &mount_devices);
|
|
+ if (!unixsockets)
|
|
+ fill_unix_cache(&unixsockets);
|
|
|
|
/* File specifications */
|
|
if ( (this_name = malloc(sizeof(struct names))) == NULL)
|
|
@@ -1306,6 +1308,7 @@ void fill_unix_cache(struct unixsocket_l
|
|
*unixsocket_head = newsocket;
|
|
} /* while */
|
|
|
|
+ fclose(fp);
|
|
}
|
|
|
|
/*
|