]> granicus.if.org Git - psmisc/log
psmisc
11 years agoAdded missing comma from fuser(1)
Craig Small [Mon, 1 Apr 2013 07:33:34 +0000 (18:33 +1100)]
Added missing comma from fuser(1)

Actuallly it was a missing R because \f, shows nothing but \fR, shows a
comma.
Bug-Debian: http://bugs.debian.org/702391

11 years agoignore tar.gz and config directory
Craig Small [Thu, 21 Feb 2013 11:56:50 +0000 (22:56 +1100)]
ignore tar.gz and config directory

11 years agodoesn't complain about "not a directory"
Han Pingtian [Thu, 20 Dec 2012 03:31:50 +0000 (11:31 +0800)]
doesn't complain about "not a directory"

If /proc/#/fd points to a path which has component removed, fuser
will complain like "Cannot stat file /proc/29322/fd/16: Not a
directory". Looks like it can be disabled just like commit 898dc70a1f
did.

Signed-off-by: Craig Small <csmall@enc.com.au>
11 years agoUpdate po files
Craig Small [Thu, 21 Feb 2013 11:51:23 +0000 (22:51 +1100)]
Update po files

11 years agouse AC_CANONICAL_HOST
Mike Frysinger [Tue, 19 Feb 2013 19:44:50 +0000 (14:44 -0500)]
use AC_CANONICAL_HOST

--host is used for the system where the compiled code will run.
--target is not the correct system to look that up.
http://www.gnu.org/software/autoconf/manual/html_node/Manual-Configuration.html#Manual-Configuration

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Craig Small <csmall@enc.com.au>
12 years agopstree compiles with SE Linux
Craig Small [Sat, 6 Oct 2012 23:52:46 +0000 (10:52 +1100)]
pstree compiles with SE Linux

pstree failed to compile with SE Linux enabled because one of the
scontext was missed and without it enabled the bug doesn't appear.

pstree is now re-worked so scontext is defined as a dummy meaning
most of the code except the reall SE Linux specific stuff is compilied
meaning this sort of thing shouldn't happen too much again.

Bug-Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=437332
Bug-Sourceforge: https://sourceforge.net/p/psmisc/bugs/54/

12 years agoupdated with distcheck v22.20
Craig Small [Thu, 20 Sep 2012 12:16:35 +0000 (22:16 +1000)]
updated with distcheck

12 years agoupdate translations
Craig Small [Thu, 20 Sep 2012 12:06:22 +0000 (22:06 +1000)]
update translations

12 years agofreebsd pid 0 and no loops
Craig Small [Thu, 20 Sep 2012 11:58:34 +0000 (21:58 +1000)]
freebsd pid 0 and no loops

pstree looped forever and never showed anything below pid 1
this change fixes the head of the tree to make sure it has a null
pointer for a parent

Signed-off-by: Craig Small <csmall@enc.com.au>
12 years agoUpdated po files v22.20rc1
Craig Small [Fri, 31 Aug 2012 04:47:16 +0000 (14:47 +1000)]
Updated po files

12 years agoforce process age >= 0
Craig Small [Fri, 31 Aug 2012 04:37:57 +0000 (14:37 +1000)]
force process age >= 0

sometimes some small numbers would hit an assert around process age,
this fix just makes really young processes have an age of 0

Bug-Debian: http://bugs.debian.org/628617

12 years agofuser finds unix sockets
Craig Small [Fri, 31 Aug 2012 04:21:19 +0000 (14:21 +1000)]
fuser finds unix sockets

in check_dir() stat was replaced with device() which found the right
device but zeroed out the inode, making that check always fail. This
meant fuser never found unix sockets.

12 years agopstree finds orphans
Craig Small [Fri, 31 Aug 2012 00:05:24 +0000 (10:05 +1000)]
pstree finds orphans

Commit 26f9b6c1553d021c0bf9dd85f0647dc6e210948d while fixing the missing
root pid problem introduced another problem where PIDs are out of order.
A process that has a lower PID than its PPID would appear twice with
the tree breaking in strange ways.

We now scan the entire process tree first then perform two checks
 if PID==1 is missing add it
 if a process has no parent, then make it a child of PID==1, either the
 real one or the faked one made in step 1

As this is done after all procsses are found, we don't get the previous
breakage.

Ref: https://sourceforge.net/tracker/?func=detail&aid=3537508&group_id=15273&atid=115273

Signed-off-by: Craig Small <csmall@users.sourceforge.net>
12 years agofuser -m regression
Craig Small [Thu, 30 Aug 2012 22:09:45 +0000 (08:09 +1000)]
fuser -m regression

While fuser -m /boot worked, fuser -m /dev/blah would show everything.
This was because the filesystem for /dev was added as a target, not the
filesystem /dev/blah.

This simple fix suggested by SF user hanpt works well.

Ref: https://sourceforge.net/tracker/?func=detail&aid=3559232&group_id=15273&atid=115273
Signed-off-by: Craig Small <csmall@users.sourceforge.net>
12 years agoMerge branch 'master' of ssh://psmisc.git.sourceforge.net/gitroot/psmisc/psmisc
Craig Small [Sat, 28 Jul 2012 09:00:56 +0000 (19:00 +1000)]
Merge branch 'master' of ssh://psmisc.git.sourceforge.net/gitroot/psmisc/psmisc

Conflicts:
doc/killall.1
doc/pstree.1

12 years agoCleanup man pages
Craig Small [Sat, 28 Jul 2012 08:56:49 +0000 (18:56 +1000)]
Cleanup man pages

Date uses standard format
Authors section removed
Copyright header in comments

12 years agodocs: clean up pstree.1
Sami Kerola [Thu, 26 Jul 2012 17:35:08 +0000 (19:35 +0200)]
docs: clean up pstree.1

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agodocs: clean up prtstat.1
Sami Kerola [Thu, 26 Jul 2012 17:34:31 +0000 (19:34 +0200)]
docs: clean up prtstat.1

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agodocs: clean up peekfd.1
Sami Kerola [Thu, 26 Jul 2012 17:34:18 +0000 (19:34 +0200)]
docs: clean up peekfd.1

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agodocs: clean up killall.1
Sami Kerola [Thu, 26 Jul 2012 17:34:06 +0000 (19:34 +0200)]
docs: clean up killall.1

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agodocs: clean up fuser.1
Sami Kerola [Thu, 26 Jul 2012 17:33:42 +0000 (19:33 +0200)]
docs: clean up fuser.1

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agomisc: fix misspell-check warnings
Sami Kerola [Thu, 26 Jul 2012 16:38:34 +0000 (18:38 +0200)]
misc: fix misspell-check warnings

https://github.com/lyda/misspell-check

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agopstree sorts properly on names
Craig Small [Fri, 20 Jul 2012 12:32:27 +0000 (22:32 +1000)]
pstree sorts properly on names

pstree added temporary parents to processes, so if a child process
was lexigraphically before the parents or its "aunties and uncles"
then they were sorted with the parent temporary name "?".

This patch reorders the children in the parents list when they
are renamed.

12 years agoStart of test scripts for psmisc
Craig Small [Fri, 22 Jun 2012 11:28:14 +0000 (21:28 +1000)]
Start of test scripts for psmisc

12 years agoRolled to version 22.19 and fix killall killing all v22.19
Craig Small [Thu, 21 Jun 2012 12:09:29 +0000 (22:09 +1000)]
Rolled to version 22.19 and fix killall killing all

killall would kill all processes with no arguments, was missing an exit

12 years agoUpdate po files with last change v22.18
Craig Small [Sun, 17 Jun 2012 05:21:04 +0000 (15:21 +1000)]
Update po files with last change

12 years agoFixed -w usage SFbug:3528478
Craig Small [Sat, 16 Jun 2012 09:07:12 +0000 (19:07 +1000)]
Fixed -w usage SFbug:3528478

12 years agoUpdated readme and po files
Craig Small [Sat, 16 Jun 2012 09:03:58 +0000 (19:03 +1000)]
Updated readme and po files

12 years agoRemoved remants of pidof
Craig Small [Sat, 16 Jun 2012 08:49:27 +0000 (18:49 +1000)]
Removed remants of pidof

pidof has been in util-linux for a while, but there has been some
remaining code in killall which is now removed.

12 years agokillall max names fixed
Craig Small [Sat, 16 Jun 2012 08:44:34 +0000 (18:44 +1000)]
killall max names fixed

The maximum number of names was not documented and was out by one.
Problem reported by J.A. Bezemer
Bug-Debian: http://bugs.debian.org/677428

12 years agokillall assert lifetime
Craig Small [Sat, 16 Jun 2012 08:09:24 +0000 (18:09 +1000)]
killall assert lifetime

Sometimes killall younger-than or older-than would trigger an assert
failure because the process age was too small and was close to zero.

Bug reported and analysed by Frédéric Brière <fbriere@fbriere.net>
Bug-Debian: http://bugs.debian.org/628617

12 years agoAnother sed from from same source
Craig Small [Fri, 15 Jun 2012 11:56:09 +0000 (21:56 +1000)]
Another sed from from same source

12 years agosed uses proper BRE
Craig Small [Mon, 11 Jun 2012 01:36:55 +0000 (11:36 +1000)]
sed uses proper BRE

Apparently even though [0-9]+ works most of the time, its not proper BRE
and doesn't work ALL of the time. Replacing this with [0-9][0-9]* makes
everyone happy.

Noticed by Rich from the busybox project and reported by John Spencer
of the same project.

12 years agoConditional install fuser.1
Craig Small [Mon, 11 Jun 2012 01:29:03 +0000 (11:29 +1000)]
Conditional install fuser.1

If fuser binary is not installed, don't install fuser man page either

12 years agoAdded AC_CANONICAL_TARGET to configure.ac
Craig Small [Mon, 11 Jun 2012 01:00:52 +0000 (11:00 +1000)]
Added AC_CANONICAL_TARGET to configure.ac

This line gives you target_os which is needed for the hurd
dependency lines.

Bug-Debian: http://bugs.debian.org/673485

12 years agoUpdate configure.ac to 22.17 v22.17
Craig Small [Sat, 2 Jun 2012 05:55:52 +0000 (15:55 +1000)]
Update configure.ac to 22.17

12 years agoFinal 22.17 release changes
Craig Small [Sat, 2 Jun 2012 05:37:00 +0000 (15:37 +1000)]
Final 22.17 release changes

12 years agoUpdated language files
Craig Small [Sat, 2 Jun 2012 05:33:04 +0000 (15:33 +1000)]
Updated language files

My thanks again to all the translators for the translation project who
work on these translations.

12 years agoMade rc1 ready for the translators
Craig Small [Sun, 20 May 2012 01:24:13 +0000 (11:24 +1000)]
Made rc1 ready for the translators

12 years agopstree displays PGIDs
Craig Small [Sat, 19 May 2012 23:59:01 +0000 (09:59 +1000)]
pstree displays PGIDs

Patch based upon a patch submitted by Alan Grow.
The -g flag shows program group IDs, much like the PIDs display.

Bug-Sourceforge:
http://sourceforge.net/tracker/?func=detail&aid=3471056&group_id=15273&atid=315273

12 years ago3 fixes for Cygwin
Corinna Vinschen [Sat, 19 May 2012 08:54:35 +0000 (18:54 +1000)]
3 fixes for Cygwin

The attached patch fixes three issues of fuser on Cygwin.:

- Cygwin does not support /proc/net/unix. The call to fill_unix_cache
  always generates an error message that /proc/net/unix couldn't be
  found, so the patch disables the call for Cygwin. An alternative
  fix would be to avoid the error message entirely.

- `ls /dev' on Cygwin only lists manually added entries to /dev, not the
  default files suported by Cygwin internally. Also,
  /proc/$PID/mountinfo doesn't exist up to Cygwin 1.7.11. This
  breaks fuser when using the _LISTS_H option.

- If you don't include lists.h, the code in check_dir doesn't work well.
  st.st_ino is never set to 0, so the timeout(stat, ...) is never
  called. Also, thedev never gets a valid value in this case, but it's
  used subsequently for comparisons.

12 years agoFake pstree root with kernels with hidepid
Arkadiusz Miskiewicz [Sat, 19 May 2012 08:39:02 +0000 (18:39 +1000)]
Fake pstree root with kernels with hidepid

Kernels that hide pids hide pid=1 which pstree needs to show any
output.  If pstree detects this it now makes a "fake" root.

Bug-Sourceforge: https://sourceforge.net/tracker/?func=detail&aid=3509672&group_id=15273&atid=115273
Signed-off-by: Craig Small <csmall@enc.com.au>
12 years agofuser compiles with PIE
Craig Small [Sat, 19 May 2012 08:32:57 +0000 (18:32 +1000)]
fuser compiles with PIE

Some people have reported that fuser, specifically src/lists won't
compile with PIE enabled. This tiny patch fixes it.

Bug-Gentoo: http://bugs.gentoo.org/394443
Bug-Gentoo: http://bugs.gentoo.org/401851
Bug-Sourceforge: https://sourceforge.net/tracker/?func=detail&aid=3504801&group_id=15273&atid=115273

12 years agoUpdated PO files ready for dist
Craig Small [Sat, 19 May 2012 08:23:38 +0000 (18:23 +1000)]
Updated PO files ready for dist

12 years agoMerge branch 'master' of ssh://psmisc.git.sourceforge.net/gitroot/psmisc/psmisc
Craig Small [Sat, 19 May 2012 08:15:40 +0000 (18:15 +1000)]
Merge branch 'master' of ssh://psmisc.git.sourceforge.net/gitroot/psmisc/psmisc

Conflicts:
ChangeLog
src/fuser.c

12 years agoRemove fuser out of target for hurd-i386
Samuel Thibault [Sat, 19 May 2012 08:09:41 +0000 (18:09 +1000)]
Remove fuser out of target for hurd-i386

hurd-i386 does not have PATH_MAX which means fuser won't compile.
However the archtecture cannot use fuser anyway so we now don't
even try to compile it for hurd-i386

Bug-Debian: http://bugs.debian.org/673485
Signed-off-by: Craig Small <csmall@enc.com.au>
12 years agoUse --enable-timeout-stat as well as --enable-timeout-stat=static
Werner Fink [Tue, 13 Mar 2012 15:15:43 +0000 (16:15 +0100)]
Use --enable-timeout-stat as well as --enable-timeout-stat=static
for a static background process which does the final stat system calls

Signed-off-by: Werner Fink <werner@suse.de>
12 years agoAdd timeout.c/timeout.h for static background process for doing the stat system calls
Werner Fink [Tue, 13 Mar 2012 13:49:52 +0000 (14:49 +0100)]
Add timeout.c/timeout.h for static background process for doing the stat system calls

Signed-off-by: Werner Fink <werner@suse.de>
12 years agoReally add ASCII null at command string in add_proc() of pstree.c
Werner Fink [Tue, 13 Mar 2012 12:39:52 +0000 (13:39 +0100)]
Really add ASCII null at command string in add_proc() of pstree.c

Signed-off-by: Werner Fink <werner@suse.de>
12 years agoUpdated changelog to 22.17
Craig Small [Sat, 3 Mar 2012 21:50:52 +0000 (08:50 +1100)]
Updated changelog to 22.17

12 years agofuser: Use correct WITH_TIMEOUT_STAT to conditionalize timeout()
Guillem Jover [Wed, 12 Oct 2011 21:31:25 +0000 (23:31 +0200)]
fuser: Use correct WITH_TIMEOUT_STAT to conditionalize timeout()

Signed-off-by: Guillem Jover <guillem@hadrons.org>
12 years agopo file refresh v22.16
Craig Small [Sun, 26 Feb 2012 04:22:38 +0000 (15:22 +1100)]
po file refresh

12 years agoNull terminate some strings
Craig Small [Sun, 26 Feb 2012 04:18:42 +0000 (15:18 +1100)]
Null terminate some strings

12 years agokillall: fix potential string overflow [cppcheck]
Sami Kerola [Wed, 8 Feb 2012 21:35:32 +0000 (22:35 +0100)]
killall: fix potential string overflow [cppcheck]

[src/killall.c:138]: (warning) scanf without field width limits can crash with huge input data

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agoBetter comm_len fix
Craig Small [Thu, 9 Feb 2012 20:03:34 +0000 (07:03 +1100)]
Better comm_len fix

The previous fix for comm_len broke checks for process exactly the right
length, this one fixes the original problem and doesn't break that
situation.

Added a variable to the conditional STAT code that was previously
outside the #ifdef and gave an unsed variable warning.

12 years agoAdded hardened CFLAGS
Craig Small [Fri, 27 Jan 2012 02:11:25 +0000 (13:11 +1100)]
Added hardened CFLAGS

Debian and Ubuntu (at the least) have some CFLAGS that harden the binary
for some typical attacks. psmisc now will have these flags on by default
but checks the compilier supports them.

12 years agoSet COMM_LEN to 18 to include brackets in name
Craig Small [Fri, 27 Jan 2012 01:02:48 +0000 (12:02 +1100)]
Set COMM_LEN to 18 to include brackets in name

Also use strncpy in case the command names grow.

12 years agoUpdated configure.ac to 22.15 v22.15
Craig Small [Thu, 26 Jan 2012 22:11:07 +0000 (09:11 +1100)]
Updated configure.ac to 22.15

12 years agopo file update due to distcheck
Craig Small [Wed, 25 Jan 2012 11:08:05 +0000 (22:08 +1100)]
po file update due to distcheck

12 years agoUpdated the language files
Craig Small [Wed, 25 Jan 2012 11:06:30 +0000 (22:06 +1100)]
Updated the language files

12 years agoMerge branch 'master' of ssh://psmisc.git.sourceforge.net/gitroot/psmisc/psmisc
Craig Small [Wed, 25 Jan 2012 10:52:47 +0000 (21:52 +1100)]
Merge branch 'master' of ssh://psmisc.git.sourceforge.net/gitroot/psmisc/psmisc

Conflicts:
ChangeLog

12 years agokillall: check fscanf return value
Sami Kerola [Wed, 4 Jan 2012 14:02:07 +0000 (15:02 +0100)]
killall: check fscanf return value

killall.c:138:10: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]

Signed-off-by: Sami Kerola <sami.kerola@tomtom.com>
12 years agoprtstat: check fgets return value
Sami Kerola [Wed, 4 Jan 2012 13:54:29 +0000 (14:54 +0100)]
prtstat: check fgets return value

prtstat.c:234:8: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]

Signed-off-by: Sami Kerola <sami.kerola@tomtom.com>
12 years agoMoved sigalarm function in fuser
Craig Small [Wed, 25 Jan 2012 10:44:57 +0000 (21:44 +1100)]
Moved sigalarm function in fuser

The sigalarm function was outside an #ifdef which meant it was defined
but not used with certain configure parameters.

Thanks to sami Kerola for pointing out the problem.

12 years agobuild-sys: fix AC_TRY_LINK warnings
Sami Kerola [Wed, 4 Jan 2012 13:49:08 +0000 (14:49 +0100)]
build-sys: fix AC_TRY_LINK warnings

configure.ac:71: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:71: You should run autoupdate.
../../lib/autoconf/general.m4:2688: AC_TRY_LINK is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
m4/gettext.m4:367: gt_INTL_MACOSX is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:71: the top level
configure.ac:71: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:71: You should run autoupdate.
../../lib/autoconf/general.m4:2688: AC_TRY_LINK is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:71: the top level
configure.ac:71: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:71: You should run autoupdate.
../../lib/autoconf/general.m4:2688: AC_TRY_LINK is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...

Signed-off-by: Sami Kerola <sami.kerola@tomtom.com>
12 years agobuild-sys: add .gitignore file
Sami Kerola [Wed, 4 Jan 2012 13:46:40 +0000 (14:46 +0100)]
build-sys: add .gitignore file

Signed-off-by: Sami Kerola <sami.kerola@tomtom.com>
12 years agobuild-sys: autoconf expects m4 macro directory
Sami Kerola [Sat, 22 Oct 2011 23:02:32 +0000 (01:02 +0200)]
build-sys: autoconf expects m4 macro directory

Without m4 directory one will get following error message when using
rather new autotools version (2.68.89-2a9b7).

macro `AM_GNU_GETTEXT' not found in library

http://www.gnu.org/s/hello/manual/gettext/aclocal.html

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoFixed minor older/younger typo in killall.1
Craig Small [Fri, 28 Oct 2011 23:53:16 +0000 (10:53 +1100)]
Fixed minor older/younger typo in killall.1

13 years agowaitpid for fuser to stop zombies
Craig Small [Fri, 28 Oct 2011 23:42:43 +0000 (10:42 +1100)]
waitpid for fuser to stop zombies

Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/876387
Bug-Sourceforge:
https://sourceforge.net/tracker/?func=detail&aid=3429674&group_id=15273&atid=115273

Patch by Peter Holik for using waitpid to stop zombies.

13 years agodocs: fix prtstat.1 typos
Sami Kerola [Tue, 25 Oct 2011 08:15:33 +0000 (10:15 +0200)]
docs: fix prtstat.1 typos

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoUse ENOENT instead of EBADE for kFreeBSD
Craig Small [Wed, 19 Oct 2011 11:40:37 +0000 (22:40 +1100)]
Use ENOENT instead of EBADE for kFreeBSD

A small fix suggested by Petr Salinger for FreeBSD that doesn't have
EBADE defined. Fixes Debian bug #631566

13 years agoCorrect defines for timeout in configure.ac
Werner Fink [Mon, 12 Sep 2011 15:25:29 +0000 (17:25 +0200)]
Correct defines for timeout in configure.ac

Signed-off-by: Werner Fink <werner@suse.de>
13 years agoAdd another 2 for thread brackets in pstree.c
Werner Fink [Wed, 7 Sep 2011 09:04:35 +0000 (11:04 +0200)]
Add another 2 for thread brackets in pstree.c

Signed-off-by: Werner Fink <werner@suse.de>
13 years agoRemove doubled file content of src/lists.h
Werner Fink [Wed, 7 Sep 2011 08:03:32 +0000 (10:03 +0200)]
Remove doubled file content of src/lists.h

13 years agoPatch to make against cygwin
Craig Small [Mon, 25 Jul 2011 11:42:42 +0000 (21:42 +1000)]
Patch to make against cygwin

13 years agoconditionally compile in fork for stat
Craig Small [Mon, 18 Jul 2011 11:23:30 +0000 (21:23 +1000)]
conditionally compile in fork for stat

13 years agoReally apply the fuser -s patch
Craig Small [Thu, 23 Jun 2011 12:15:12 +0000 (22:15 +1000)]
Really apply the fuser -s patch

13 years agoAdded lists.h to fuser sources v22.14
Craig Small [Mon, 20 Jun 2011 12:01:10 +0000 (22:01 +1000)]
Added lists.h to fuser sources

With no lists.h make distcheck fails, now it works.

13 years agomore language po fixes
Craig Small [Mon, 20 Jun 2011 11:48:00 +0000 (21:48 +1000)]
more language po fixes

13 years agolanguage updates and fixes
Craig Small [Mon, 20 Jun 2011 11:45:39 +0000 (21:45 +1000)]
language updates and fixes

Language po files updated
fuser doesn't complain if /proc/#/fd disappears SF#3310990

13 years agofuser -k return and fuser.1 ipv6 addresses
Craig Small [Sun, 19 Jun 2011 04:14:22 +0000 (14:14 +1000)]
fuser -k return and fuser.1 ipv6 addresses

fuser understands IPv6 addresses, removed comment in fuser.1 that it
 doesn't Debian #609904
fuser -k only returns 0 if you kill something.

13 years ago2 Fixes for Debian Bug#623425
Craig Small [Sun, 19 Jun 2011 01:16:43 +0000 (11:16 +1000)]
2 Fixes for Debian Bug#623425

Both patches are by Jonathan Nieder <jrnieder@gmail.com>

Ever since psmisc 22.4 (2007-04-08), "killall <path>" compares
the target of the /proc/<pid>/exe link to <path> when comparison
of inode numbers fails.  But the code to do this has two problems:

 - readlink does not NUL-terminate, but we use strcmp to
   compare strings.  Probably this hasn't been a problem so far
   because (1) the on-stack buffer happened to have zeroes in the
   right places or (2) some implementations of readlink might
   happen to NUL-terminate their result when convenient anyway.

 - it relies on PATH_MAX to determine the size of the buffer,
   so the code fails to build from source on platforms (like the
   Hurd) that have no global PATH_MAX.

Fix both by using a buffer of size strlen("<path>") + 1 and comparing
the link target to <path> with memcmp after checking that it fit in
the buffer.

For consistency with the surrounding code, the pid is considered not
to match if malloc or readlink fails.

---------------
The Hurd has most of the expected /proc/<pid> hierarchy but no
/proc/self.  Without this change, running "sleep 10 & killall sleep"
on that platform produces the confusing message:
    /proc is empty (not mounted ?)

13 years agoAdded SF patches and bug reports
Craig Small [Tue, 22 Feb 2011 09:35:14 +0000 (20:35 +1100)]
Added SF patches and bug reports

* Applied patch from Werner Fink to avoid stat(2) on NFS mounts
* Zeros process group memory - Patch by jgorig SF#3152925 RH#666213
* fuser -m -s flags work - Patch by jgorig SF#31110178 RH#651794
* fuser silent if /proc/swaps not available SF#3072134
* ppc 64 support for peekfd by jgorig SF#3166444
* jiffies now ULL in killall SF#3138538
* pstree can show parents of a process. Patch supplied by Curtis Hawthorne SF#3135157

14 years agoFix a regression caused by git commit c4fdae52e4fe6f which reintroduces sf#1948351.
Werner Fink [Fri, 15 Oct 2010 08:51:54 +0000 (10:51 +0200)]
Fix a regression caused by git commit c4fdae52e4fe6f which reintroduces sf#1948351.

14 years agoAdd an option -w to fuser to be able to send signals
Werner Fink [Tue, 21 Sep 2010 07:04:16 +0000 (09:04 +0200)]
Add an option -w to fuser to be able to send signals
to  processes which have write access to an open file
or directory. This option is silently ignored if -k is
not present too.

Signed-off-by: Werner Fink <werner@suse.de>
14 years agoMerge branch 'master' of ssh://wfink@psmisc.git.sourceforge.net/gitroot/psmisc/psmisc
Werner Fink [Mon, 20 Sep 2010 12:35:39 +0000 (14:35 +0200)]
Merge branch 'master' of ssh://wfink@psmisc.git.sourceforge.net/gitroot/psmisc/psmisc

14 years agoWerner's patch SF#3063450
Craig Small [Sat, 11 Sep 2010 07:25:09 +0000 (17:25 +1000)]
Werner's patch SF#3063450

14 years agoFix file descriptor as well as memory leaks in fuser.
Werner Fink [Fri, 10 Sep 2010 09:18:53 +0000 (11:18 +0200)]
Fix file descriptor as well as memory leaks in fuser.
Strip @ symbol from file names read from /proc/net/unix.
This close the openSuSE bugs #536209, #529520, and #417841.

14 years agoUpdated to 22.14 working version
Craig Small [Mon, 6 Sep 2010 03:49:56 +0000 (13:49 +1000)]
Updated to 22.14 working version

14 years agoUpdated po files from TP website v22.13
Craig Small [Mon, 6 Sep 2010 03:31:36 +0000 (13:31 +1000)]
Updated po files from TP website

14 years agoconfigure.ac fixes for peekfd on mipsel and x86_64
Craig Small [Wed, 14 Jul 2010 08:25:02 +0000 (18:25 +1000)]
configure.ac fixes for peekfd on mipsel and x86_64

14 years ago22.12 release v22.12
Craig Small [Wed, 14 Jul 2010 06:51:55 +0000 (16:51 +1000)]
22.12 release

14 years agoLast 22.12 release, waiting for tp
Craig Small [Tue, 15 Jun 2010 12:47:33 +0000 (22:47 +1000)]
Last 22.12 release, waiting for tp

Updated the po files, waiting for translations
peekfd off-by-one patch applied

14 years agoAdded ignore files
Craig Small [Thu, 8 Apr 2010 12:45:32 +0000 (22:45 +1000)]
Added ignore files

14 years agoRemoved CVS files v22.11
Craig Small [Thu, 8 Apr 2010 12:24:23 +0000 (22:24 +1000)]
Removed CVS files

14 years agoUpdated po files from translation website
Craig Small [Thu, 8 Apr 2010 11:18:05 +0000 (11:18 +0000)]
Updated po files from translation website

14 years agoUpdated po files for: Dutch, Basque, Swedish, Czech, Polish and Russian
Craig Small [Mon, 11 Jan 2010 11:16:37 +0000 (11:16 +0000)]
Updated po files for: Dutch, Basque, Swedish, Czech, Polish  and Russian

14 years agofuser -k fixed now too
Craig Small [Mon, 4 Jan 2010 10:39:43 +0000 (10:39 +0000)]
fuser -k fixed now too

14 years agoFixed fuser signal option
Craig Small [Mon, 4 Jan 2010 10:11:38 +0000 (10:11 +0000)]
Fixed fuser signal option

15 years agoupdated to 22.10 and fuser wont kill itself
Craig Small [Mon, 28 Dec 2009 02:55:00 +0000 (02:55 +0000)]
updated to 22.10 and fuser wont kill itself