psmisc/psmisc-23.0-net.patch
2017-06-28 13:12:45 +00:00

37 lines
1.1 KiB
Diff

---
src/fuser.c | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
--- src/fuser.c
+++ src/fuser.c 2017-06-28 13:07:15.917978249 +0000
@@ -1160,17 +1160,18 @@ int main(int argc, char *argv[])
}
skip_argv = 1;
//while(option != '\0') option++;
- if (strcmp(argv[argc_cnt], "tcp") == 0)
- default_namespace =
- NAMESPACE_TCP;
- else if (strcmp(argv[argc_cnt], "udp")
- == 0)
- default_namespace =
- NAMESPACE_UDP;
- else if (strcmp(argv[argc_cnt], "file")
- == 0)
- default_namespace =
- NAMESPACE_FILE;
+ if (strcmp(argv[argc_cnt], "tcp") == 0) {
+ default_namespace = NAMESPACE_TCP;
+#if defined(WITH_MOUNTINFO_LIST)
+ opts |= OPT_ALWAYSSTAT;
+#endif
+ } else if (strcmp(argv[argc_cnt], "udp") == 0) {
+ default_namespace = NAMESPACE_UDP;
+#if defined(WITH_MOUNTINFO_LIST)
+ opts |= OPT_ALWAYSSTAT;
+#endif
+ } else if (strcmp(argv[argc_cnt], "file") == 0)
+ default_namespace = NAMESPACE_FILE;
else
usage(_
("Invalid namespace name"));