.
OBS-URL: https://build.opensuse.org/package/show/Base:System/psmisc?expand=0&rev=85
This commit is contained in:
parent
4e258aabaa
commit
fa603a808e
@ -1,36 +1,15 @@
|
||||
---
|
||||
src/fuser.c | 23 ++++++++++++-----------
|
||||
1 file changed, 12 insertions(+), 11 deletions(-)
|
||||
src/fuser.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- 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"));
|
||||
+++ src/fuser.c 2017-06-28 16:52:23.402294591 +0000
|
||||
@@ -1210,7 +1210,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
#if defined(WITH_MOUNTINFO_LIST)
|
||||
- if ((opts & OPT_ALWAYSSTAT) == 0)
|
||||
+ if ((opts & (OPT_MOUNT|OPT_ALWAYSSTAT)) == OPT_MOUNT)
|
||||
thestat = mntstat;
|
||||
#endif
|
||||
/* an option */
|
||||
|
@ -63,6 +63,7 @@ ln -sf %{name}-v%{version}-%{hash} %{name}-%version
|
||||
%patch4 -p0 -b .mntpt
|
||||
%patch5 -p0 -b .lessnfs
|
||||
%patch6 -p0 -b .ka
|
||||
exit 1
|
||||
%patch7 -p0 -b .net
|
||||
%patch0 -p0 -b .0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user