This commit is contained in:
parent
e7165bc8c3
commit
bf15efb9a1
@ -33,7 +33,7 @@
|
|||||||
cannot report on any processes that it doesn't have permission to look at
|
cannot report on any processes that it doesn't have permission to look at
|
||||||
the file descriptor table for. The most common time this problem occurs
|
the file descriptor table for. The most common time this problem occurs
|
||||||
--- src/fuser.c
|
--- src/fuser.c
|
||||||
+++ src/fuser.c 2009-03-11 14:09:40.832002165 +0100
|
+++ src/fuser.c 2009-03-12 10:21:40.980003767 +0100
|
||||||
@@ -32,9 +32,11 @@
|
@@ -32,9 +32,11 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -376,7 +376,7 @@
|
|||||||
- parse_unixsockets(this_name, &match_inodes, unixsockets);
|
- parse_unixsockets(this_name, &match_inodes, unixsockets);
|
||||||
- if (opts & OPT_MOUNTPOINT || opts & OPT_MOUNTS)
|
- if (opts & OPT_MOUNTPOINT || opts & OPT_MOUNTS)
|
||||||
+ len = strlen(this_name->filename);
|
+ len = strlen(this_name->filename);
|
||||||
+ if (this_name->filename[len-1] == '/')
|
+ if (len > 1 && this_name->filename[len-1] == '/')
|
||||||
+ this_name->filename[len-1] = '\0';
|
+ this_name->filename[len-1] = '\0';
|
||||||
+ parse_file(this_name, &match_inodes, opts);
|
+ parse_file(this_name, &match_inodes, opts);
|
||||||
+ parse_unixsockets(this_name, &match_inodes, unixsockets, netdev, opts);
|
+ parse_unixsockets(this_name, &match_inodes, unixsockets, netdev, opts);
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 12 10:23:12 CET 2009 - werner@suse.de
|
||||||
|
|
||||||
|
- nfs4fuser: be able to detect the root file system (bnc#464295)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 11 14:24:06 CET 2009 - werner@suse.de
|
Wed Mar 11 14:24:06 CET 2009 - werner@suse.de
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ Group: System/Monitoring
|
|||||||
PreReq: %fillup_prereq %insserv_prereq
|
PreReq: %fillup_prereq %insserv_prereq
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 22.6
|
Version: 22.6
|
||||||
Release: 62
|
Release: 63
|
||||||
Provides: ps:/usr/bin/killall
|
Provides: ps:/usr/bin/killall
|
||||||
Summary: Utilities for managing processes on your system
|
Summary: Utilities for managing processes on your system
|
||||||
Source: http://switch.dl.sourceforge.net/sourceforge/psmisc/psmisc-%{version}.tar.bz2
|
Source: http://switch.dl.sourceforge.net/sourceforge/psmisc/psmisc-%{version}.tar.bz2
|
||||||
@ -105,6 +105,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/pstree.1*
|
%{_mandir}/man1/pstree.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 12 2009 werner@suse.de
|
||||||
|
- nfs4fuser: be able to detect the root file system (bnc#464295)
|
||||||
* Wed Mar 11 2009 werner@suse.de
|
* Wed Mar 11 2009 werner@suse.de
|
||||||
- nfs4fuser: make sure not to stumble on short named mount points
|
- nfs4fuser: make sure not to stumble on short named mount points
|
||||||
to avoid to terminate processes on wrong mount points
|
to avoid to terminate processes on wrong mount points
|
||||||
|
Loading…
Reference in New Issue
Block a user