2017-06-20 16:04:40 +02:00
|
|
|
---
|
2017-06-20 17:36:37 +02:00
|
|
|
configure.ac | 4 ++--
|
|
|
|
doc/Makefile.am | 2 +-
|
2017-07-05 15:33:06 +02:00
|
|
|
src/fuser.c | 5 ++++-
|
|
|
|
3 files changed, 7 insertions(+), 4 deletions(-)
|
2017-06-20 16:04:40 +02:00
|
|
|
|
2010-10-15 16:44:11 +02:00
|
|
|
--- configure.ac
|
2017-07-05 15:33:06 +02:00
|
|
|
+++ configure.ac 2017-07-05 13:18:18.806270222 +0000
|
|
|
|
@@ -45,7 +45,7 @@ fi
|
2014-03-24 17:13:40 +01:00
|
|
|
if test "$enable_timeout_stat" = "static"; then
|
|
|
|
AC_DEFINE([WITH_TIMEOUT_STAT], [2], [Use timeout on stat calls])
|
|
|
|
fi
|
|
|
|
-AM_CONDITIONAL([WANT_TIMEOUT_STAT], [test "$enable_timeout_stat" = "static"])
|
|
|
|
+AM_CONDITIONAL([WANT_TIMEOUT_STAT], [test "$enable_timeout_stat" != "no"])
|
|
|
|
|
2017-07-05 15:33:06 +02:00
|
|
|
# Use /proc/self/mountinfo if available
|
|
|
|
if test -e /proc/self/mountinfo ; then
|
|
|
|
@@ -142,7 +142,7 @@ AC_CHECK_MEMBERS([struct user_regs_struc
|
2010-10-15 16:44:11 +02:00
|
|
|
struct user_regs_struct.rdi,
|
|
|
|
struct user_regs_struct.rsi,
|
|
|
|
struct user_regs_struct.rdx], [],[],
|
|
|
|
- [#include <bits/types.h>
|
|
|
|
+ [#include <sys/types.h>
|
|
|
|
#include <sys/user.h>])
|
|
|
|
AC_CHECK_MEMBERS([struct pt_regs.orig_gpr3,
|
|
|
|
struct pt_regs.gpr], [],[], [#include <linux/ptrace.h>])
|
2017-06-20 17:36:37 +02:00
|
|
|
--- doc/Makefile.am
|
2017-07-05 15:33:06 +02:00
|
|
|
+++ doc/Makefile.am 2017-07-05 13:18:18.806270222 +0000
|
2017-06-20 17:36:37 +02:00
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
|
|
|
|
-man_MANS = killall.1 peekfd.1 prtstat.1 pstree.1
|
|
|
|
+man_MANS = killall.1 peekfd.1 prtstat.1 pstree.1 pslog.1
|
|
|
|
EXTRA_MANS =
|
|
|
|
|
|
|
|
if WANT_FUSER
|
2010-07-13 18:50:33 +02:00
|
|
|
--- src/fuser.c
|
2017-07-05 15:33:06 +02:00
|
|
|
+++ src/fuser.c 2017-07-05 13:18:18.806270222 +0000
|
|
|
|
@@ -1085,6 +1085,7 @@ int main(int argc, char *argv[])
|
2012-12-18 18:20:19 +01:00
|
|
|
struct option *optr;
|
2010-07-13 18:50:33 +02:00
|
|
|
char *nsptr;
|
2012-12-18 18:20:19 +01:00
|
|
|
int skip_argv;
|
2010-07-13 18:50:33 +02:00
|
|
|
+ int seen_file;
|
|
|
|
|
|
|
|
struct option options[] = {
|
2011-02-08 17:55:25 +01:00
|
|
|
{"all", 0, NULL, 'a'},
|
2017-07-05 15:33:06 +02:00
|
|
|
@@ -1128,6 +1129,7 @@ int main(int argc, char *argv[])
|
2012-12-18 18:20:19 +01:00
|
|
|
#endif
|
2017-06-20 17:36:37 +02:00
|
|
|
atexit(atexit_free_lists);
|
2010-07-13 18:50:33 +02:00
|
|
|
|
2012-12-18 18:20:19 +01:00
|
|
|
+ seen_file = 0;
|
|
|
|
for (argc_cnt = 1; argc_cnt < argc; argc_cnt++) {
|
|
|
|
current_argv = argv[argc_cnt];
|
|
|
|
if (current_argv[0] == '-') { /* its an option */
|
2017-07-05 15:33:06 +02:00
|
|
|
@@ -1273,6 +1275,7 @@ int main(int argc, char *argv[])
|
2010-07-13 18:50:33 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
this_name->matched_procs = NULL;
|
|
|
|
+ seen_file = 1;
|
2012-12-18 18:20:19 +01:00
|
|
|
if (opts & (OPT_MOUNTS | OPT_ISMOUNTPOINT)
|
2017-06-20 17:36:37 +02:00
|
|
|
&& this_name->name_space != NAMESPACE_FILE) {
|
|
|
|
free(this_name);
|
2017-07-05 15:33:06 +02:00
|
|
|
@@ -1326,7 +1329,7 @@ int main(int argc, char *argv[])
|
2010-07-13 18:50:33 +02:00
|
|
|
names_tail->next = this_name;
|
|
|
|
names_tail = this_name;
|
2012-12-18 18:20:19 +01:00
|
|
|
} /* for across the argvs */
|
2010-07-13 18:50:33 +02:00
|
|
|
- if (names_head == NULL)
|
|
|
|
+ if (names_head == NULL && !seen_file)
|
|
|
|
usage(_("No process specification given"));
|
|
|
|
|
2014-03-24 17:13:40 +01:00
|
|
|
/* Check if -M flag was used and if so check mounts */
|