]> granicus.if.org Git - psmisc/log
psmisc
5 years agochangelog: Add note for !18
Craig Small [Thu, 9 May 2019 11:22:15 +0000 (21:22 +1000)]
changelog: Add note for !18

5 years agoMerge branch 'jrybar/psmisc-fuser-nullptr-sanity-scan-fns'
Craig Small [Thu, 9 May 2019 11:23:16 +0000 (21:23 +1000)]
Merge branch 'jrybar/psmisc-fuser-nullptr-sanity-scan-fns'

References:
 psmisc/psmisc!18

5 years agoNULLptr sanity added in scan fns to avoid useless prep work (stalls NFS)
Jan Rybar [Tue, 19 Feb 2019 15:39:17 +0000 (16:39 +0100)]
NULLptr sanity added in scan fns to avoid useless prep work (stalls NFS)

6 years agoMerge branch 'stapelberg/psmisc-dirstamp'
Craig Small [Wed, 7 Nov 2018 09:23:15 +0000 (20:23 +1100)]
Merge branch 'stapelberg/psmisc-dirstamp'

References:
 psmisc/psmisc!17

6 years agoMakefile.am: create src/ before src/signames.h
Michael Stapelberg [Sun, 14 Oct 2018 14:07:23 +0000 (16:07 +0200)]
Makefile.am: create src/ before src/signames.h

This fixes out-of-tree builds which use
--disable-dependency-tracking. With dependency tracking enabled,
src/.deps is created as a side-effect of how dependency tracking
works, which is why this issue was never noticed before.

6 years agomisc: Remember to add comm.h too
Craig Small [Wed, 7 Nov 2018 09:19:38 +0000 (20:19 +1100)]
misc: Remember to add comm.h too

The previous commit should have included comm.h too

6 years agokillall: match on 16 character commlen too
Craig Small [Wed, 7 Nov 2018 09:13:09 +0000 (20:13 +1100)]
killall: match on 16 character commlen too

The comm length increase meant killall could accomodate the
larger comm name given out by newer kernels but it meant that
if a user relied on the previous 16 character truncation then
processes that used to match would fail.

killall now checks to see if the the comm is the old COMM_LEN
length and the given name is longer than old COMM_LEN and does
a truncated match as well.

References:
 https://bugs.debian.org/912748

6 years agomisc: translations update v23.2
Craig Small [Mon, 24 Sep 2018 10:04:19 +0000 (20:04 +1000)]
misc: translations update

6 years agokillall: Another go at option parsing
Craig Small [Tue, 18 Sep 2018 11:17:00 +0000 (21:17 +1000)]
killall: Another go at option parsing

This now seems to be working. There are some evil hacks, especially for
the -ve option combination but it seems that we have a winner.

Added a bunch more option parsing tests which picked up -ILL passed but
-VTALRM did not. Not sure why, but length seems my guess

References:
 psmisc/psmisc#13
 psmisc/psmisc#12

6 years agodocs: fix groff errors in fuser.1
Craig Small [Wed, 12 Sep 2018 12:14:41 +0000 (22:14 +1000)]
docs: fix groff errors in fuser.1

References:
 https://bugs.debian.org/900225

6 years agomisc: Update translation files
Craig Small [Wed, 12 Sep 2018 12:10:19 +0000 (22:10 +1000)]
misc: Update translation files

6 years agokillall: ignore -n 0
Craig Small [Mon, 10 Sep 2018 12:41:45 +0000 (22:41 +1000)]
killall: ignore -n 0

While all namespaces are used by default, this means if someone used the
temporary -n 0 option in killall they will now get an error.

We just silently ignore it

References:
 commit 38829585c4f5b67c8c2a8cbdf86761a72ace43f6
 psmisc/psmisc#15

6 years agokillall: use correct size for comm
Craig Small [Mon, 27 Aug 2018 11:30:33 +0000 (21:30 +1000)]
killall: use correct size for comm

sizeof only works on statically created pointers, not pointers that are
passed as parameters to the function.

The referenced commit unfortunately didn't follow this and we got
truncated names. Thanks to Hector Martin for pointing the problem out.

References:
 commit 1e2f38a202798a78554ae5f5d12f697f3607f89f
 psmisc/psmisc#14

6 years agolanguage updates
Craig Small [Mon, 13 Aug 2018 11:29:01 +0000 (21:29 +1000)]
language updates

6 years agomisc: Update changelog for previous
Craig Small [Mon, 13 Aug 2018 11:26:18 +0000 (21:26 +1000)]
misc: Update changelog for previous

6 years agoMerge branch 'whydoubt/psmisc-peekfd_tgid'
Craig Small [Mon, 13 Aug 2018 11:24:56 +0000 (21:24 +1000)]
Merge branch 'whydoubt/psmisc-peekfd_tgid'

Merges psmisc/psmisc!15

6 years agopeekfd: Allow attaching to all threads in group
Jeff Smith [Tue, 3 Oct 2017 03:25:57 +0000 (22:25 -0500)]
peekfd: Allow attaching to all threads in group

Signed-off-by: Jeff Smith <whydoubt@gmail.com>
6 years agopeekfd: split follow_forks into follow_clones
Jeff Smith [Sat, 23 Sep 2017 06:12:44 +0000 (01:12 -0500)]
peekfd: split follow_forks into follow_clones

Signed-off-by: Jeff Smith <whydoubt@gmail.com>
6 years agopslog: Define PATH_MAX if required
Craig Small [Mon, 13 Aug 2018 11:19:39 +0000 (21:19 +1000)]
pslog: Define PATH_MAX if required

Hurd doesn't define PATH_MAX so we either change things to not use it
or conditionally define it.

References:
 https://bugs.debian.org/905797

6 years agofuser: path fixes and command name length
Craig Small [Sun, 20 May 2018 11:41:20 +0000 (21:41 +1000)]
fuser: path fixes and command name length

Change some of the paths to use dynamically allocated memory, so no
limit, or use the PATH_MAX macro.

Command Name increases to 64 and try to use the COMM_LEN or the size
of the holding buffer consistently.

6 years agobuildsys: signals.c depends on signames.h
Cristian Morales Vega [Sun, 20 May 2018 11:11:55 +0000 (21:11 +1000)]
buildsys: signals.c depends on signames.h

By explicitly specifying the dependency between signals.c and
signames.h.

BUILT_SOURCES only works with the standard targets, so if somebody tries
to build fuser directly he may end up with a build failure. What's
worse, he could do "make -j2 src/signames.h src/fuser" and he could end
up with a broken build using a only partially generated signames.h.

And that "somebody" was me when packaging killall in psmisc 22.21...
so it actually happens.

References:
 psmisc/psmisc!16

6 years agokillall: increase comm len to 64, fix indenting
Craig Small [Sun, 20 May 2018 11:02:47 +0000 (21:02 +1000)]
killall: increase comm len to 64, fix indenting

command name length now 64
fixed the indenting at last

6 years agokillall: change to getopt_long
Craig Small [Sun, 20 May 2018 10:46:55 +0000 (20:46 +1000)]
killall: change to getopt_long

with getopt_long_only -ve fails because its not sure what the -v
is for --version or --verbose. Changing to the non-_only version means
it doesn't try to expand the options to long options.

References:
 psmisc/psmisc#12

6 years agokillall: Fix -INT option parsing
Craig Small [Sun, 20 May 2018 10:42:12 +0000 (20:42 +1000)]
killall: Fix -INT option parsing

Sometimes killall gets confused between a signal name and a set of
options. This small patch should un-confuse it.

6 years agoMerge branch 'brenoleitao/psmisc-master'
Craig Small [Sat, 5 May 2018 22:11:40 +0000 (08:11 +1000)]
Merge branch 'brenoleitao/psmisc-master'

Merge request psmisc/psmisc!12

6 years agopstree: Linking with libintl.
Breno Leitao [Thu, 6 Apr 2017 17:03:00 +0000 (14:03 -0300)]
pstree: Linking with libintl.

Curently pstree does built, at least on ppc64le, because it does
not have a explicit link against gettext, causing the following error:

  peekfd.o: In function `print_version':
  peekfd.c:(.text+0x160): undefined reference to `libintl_gettext'
  peekfd.c:(.text+0x18c): undefined reference to `libintl_gettext'
  peekfd.c:(.text+0x1ac): undefined reference to `libintl_gettext'

peekfd depends on libint because of the following macro:

  #define _(String) gettext (String)

6 years agopeekfd: Include headers for ppc64
Breno Leitao [Thu, 6 Apr 2017 16:59:57 +0000 (13:59 -0300)]
peekfd: Include headers for ppc64

Currently peekfd fails to build on ppc64le architecture with musl
because it does not find reference for __WORDSIZE.

This patch just includes reference for this macro if it was not
previously defined.

6 years agoMerge branch 'baruchsi/psmisc-ship-git-version-gen'
Craig Small [Sat, 5 May 2018 22:05:44 +0000 (08:05 +1000)]
Merge branch 'baruchsi/psmisc-ship-git-version-gen'

Merging psmisc/psmisc!13

6 years agoMakefile: ship also git-version-gen
Baruch Siach [Thu, 22 Jun 2017 12:04:40 +0000 (15:04 +0300)]
Makefile: ship also git-version-gen

Without git-version-gen, the tarball autogen.sh fails.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
6 years agokillall: use all namespaces by default
Craig Small [Sat, 5 May 2018 22:02:35 +0000 (08:02 +1000)]
killall: use all namespaces by default

This is similar to the revert in procps where namespace filtering
is added but by default it uses all of them. The issue is most people
expect to see/kill all processes and the namespace filtering causes
confusion, especially around ssh related processes.

7 years agolanguage file updates
Craig Small [Sun, 9 Jul 2017 12:12:51 +0000 (22:12 +1000)]
language file updates

7 years agodocs: ship pslog.1 and README.md v23.1
Craig Small [Thu, 15 Jun 2017 20:36:37 +0000 (06:36 +1000)]
docs: ship pslog.1 and README.md

7 years agokillall: Remove debug line
Craig Small [Wed, 14 Jun 2017 21:51:21 +0000 (07:51 +1000)]
killall: Remove debug line

I missed removing a debug line for the 23 release. This also updates
the language files to version 23.

7 years agotranslations: Update translations from TP v23.0
Craig Small [Mon, 12 Jun 2017 00:29:46 +0000 (10:29 +1000)]
translations: Update translations from TP

7 years agopstree: Remove need for PATH_MAX
Svante Signell [Mon, 12 Jun 2017 00:25:57 +0000 (10:25 +1000)]
pstree: Remove need for PATH_MAX

This commit removes the need for PATH_MAX in pstree.
It uses the fact that calling snprintf() with *str=NULL and size=0
returns the number of bytes needed for the string according to
POSIX.1-2001 and later (which is supported by all glibc versions
since 2.1, see snprintf(3)).

References:
 https://bugs.debian.org/750405

Signed-off-by: Craig Small <csmall@enc.com.au>
7 years agodoc: Added changelog for previous
Craig Small [Mon, 12 Jun 2017 00:13:03 +0000 (10:13 +1000)]
doc: Added changelog for previous

7 years agoMerge branch 'fix_process_age' into 'master'
Craig Small [Mon, 12 Jun 2017 00:11:47 +0000 (00:11 +0000)]
Merge branch 'fix_process_age' into 'master'

killall - Fix race condition for --older-than and --younger-than

See merge request !11

7 years agodoc: Documents for killall namespace option
Craig Small [Sun, 11 Jun 2017 23:53:51 +0000 (09:53 +1000)]
doc: Documents for killall namespace option

Changelog and man page mention the --ns option and what it does.

References:
 commit 93a99be867ff993baa6215b608c29a4720efb32a

7 years agoMerge branch 'namespace' into 'master'
Craig Small [Sun, 11 Jun 2017 23:41:31 +0000 (23:41 +0000)]
Merge branch 'namespace' into 'master'

Support running with child namespaces

See merge request !6

7 years agokillall: better parsing of command names
Craig Small [Sun, 11 Jun 2017 22:57:15 +0000 (08:57 +1000)]
killall: better parsing of command names

killall had a simple parser for command names and if you crafted a
process that make its command name strange, killall could bypass it.

The parser now uses the same method as procps.

7 years agodoc: pstree.1 typo, fixes #7
Craig Small [Sun, 11 Jun 2017 22:08:02 +0000 (08:08 +1000)]
doc: pstree.1 typo, fixes #7

7 years agokillall - Fix race condition for --older-than and --younger-than
John Ferlito [Sat, 1 Apr 2017 23:20:33 +0000 (09:20 +1000)]
killall - Fix race condition for --older-than and --younger-than

If killall runs really quickly then it' possible for process_age to be
0.0. The existing logic will then always kill the process due t
"&& process_age" always being false in that case.

7 years agochangelog: Mention pstree cgroup namespace
Craig Small [Sat, 25 Mar 2017 10:48:58 +0000 (21:48 +1100)]
changelog: Mention pstree cgroup namespace

Thanks to Jeffrey Smith for the patch.

7 years agoMerge branch 'cgroup_namespace' into 'master'
Craig Small [Sat, 25 Mar 2017 10:47:39 +0000 (10:47 +0000)]
Merge branch 'cgroup_namespace' into 'master'

pstree: add 'cgroup' to namespaces

See merge request !10

7 years agopstree: add 'cgroup' to namespaces
Jeff Smith [Wed, 22 Mar 2017 15:26:35 +0000 (10:26 -0500)]
pstree: add 'cgroup' to namespaces

The namespace 'cgroup' was added in Linux kernel 4.6

7 years agopstree: Explictly cast ino_t to long int
Craig Small [Sat, 25 Mar 2017 00:23:43 +0000 (11:23 +1100)]
pstree: Explictly cast ino_t to long int

kFreeBSD compilier complains about this while Linux does not.
Gave wformat warning during compile.

7 years agobuild-sys: update harden flags, remove pie
Craig Small [Fri, 24 Mar 2017 23:37:35 +0000 (10:37 +1100)]
build-sys: update harden flags, remove pie

7 years agotranslation: update PO files
Craig Small [Fri, 24 Mar 2017 23:22:03 +0000 (10:22 +1100)]
translation: update PO files

7 years agomisc: Update copyrights to 2017
Craig Small [Fri, 24 Mar 2017 23:21:48 +0000 (10:21 +1100)]
misc: Update copyrights to 2017

7 years agotranslations: Update from the translation project
Craig Small [Fri, 24 Mar 2017 23:13:30 +0000 (10:13 +1100)]
translations: Update from the translation project

7 years agoMerge branch 'master' of gitlab.com:psmisc/psmisc
Craig Small [Fri, 24 Mar 2017 23:11:56 +0000 (10:11 +1100)]
Merge branch 'master' of gitlab.com:psmisc/psmisc

7 years agoMerge branch 'memory-cleanup' into 'master'
Craig Small [Fri, 24 Mar 2017 23:11:44 +0000 (23:11 +0000)]
Merge branch 'memory-cleanup' into 'master'

Memory cleanup

See merge request !9

7 years agochangelog: update previous pull requests
Craig Small [Fri, 24 Mar 2017 23:00:56 +0000 (10:00 +1100)]
changelog: update previous pull requests

7 years agoMerge branch 'master' of gitlab.com:psmisc/psmisc
Craig Small [Fri, 24 Mar 2017 22:45:44 +0000 (09:45 +1100)]
Merge branch 'master' of gitlab.com:psmisc/psmisc

7 years agoMerge branch 'killall_long_fix' into 'master'
Craig Small [Fri, 24 Mar 2017 22:44:23 +0000 (22:44 +0000)]
Merge branch 'killall_long_fix' into 'master'

killall: fix reporting when >32 names specified

See merge request !8

7 years agoMerge branch 'fix-warnings' into 'master'
Craig Small [Fri, 24 Mar 2017 22:43:17 +0000 (22:43 +0000)]
Merge branch 'fix-warnings' into 'master'

Fix extra compile-time warnings

See merge request !7

7 years agoMerge branch 'master' into 'master'
Craig Small [Fri, 24 Mar 2017 22:37:52 +0000 (22:37 +0000)]
Merge branch 'master' into 'master'

peekfd: usage help screen now contains long options list too

See merge request !5

7 years agopstree: fix type-mismatches
Jeff Smith [Thu, 16 Mar 2017 18:53:50 +0000 (13:53 -0500)]
pstree: fix type-mismatches

Noticed when compiling with CFLAGS="-Wextra -Wno-ununsed-parameter"

7 years agopeekfd: fix type-mismatches
Jeff Smith [Thu, 16 Mar 2017 18:07:02 +0000 (13:07 -0500)]
peekfd: fix type-mismatches

Noticed when compiling with CFLAGS="-Wextra -Wno-ununsed-parameter"

7 years agokillall: fix type-mismatches
Jeff Smith [Thu, 16 Mar 2017 18:56:30 +0000 (13:56 -0500)]
killall: fix type-mismatches

Noticed when compiling with CFLAGS="-Wextra -Wno-ununsed-parameter"

7 years agokillall: fix reporting when >32 names specified
Jeff Smith [Thu, 16 Mar 2017 16:18:07 +0000 (11:18 -0500)]
killall: fix reporting when >32 names specified

Recording which named processes were killed is stored in an unsigned
long bitmask.  Some of the bit-wise math is done with an int.  If
sizeof(long) > sizeof(int), some not-found processes may not be reported
as such, and/or the return code may be wrong.

This is fixed by making sure bit-wise math is being done with a long.

7 years agopstree: free various linked lists
Jeff Smith [Wed, 22 Mar 2017 05:50:25 +0000 (00:50 -0500)]
pstree: free various linked lists

Noticed when running tool in valgrind

7 years agopeekfd: free and detach on termination with Ctrl-C
Jeff Smith [Wed, 22 Mar 2017 14:31:25 +0000 (09:31 -0500)]
peekfd: free and detach on termination with Ctrl-C

Noticed when running tool in valgrind

7 years agoprtstat: free comm field of proc_inf struct
Jeff Smith [Mon, 20 Mar 2017 19:41:14 +0000 (14:41 -0500)]
prtstat: free comm field of proc_inf struct

Noticed when running tool in valgrind

7 years agokillall: free regular expression list entries
Jeff Smith [Mon, 20 Mar 2017 19:24:40 +0000 (14:24 -0500)]
killall: free regular expression list entries

Noticed when running tool in valgrind

7 years agokillall: free command buffers appropriately
Jeff Smith [Mon, 20 Mar 2017 18:32:32 +0000 (13:32 -0500)]
killall: free command buffers appropriately

Noticed when running tool in valgrind

7 years agofuser: free various linked lists
Jeff Smith [Thu, 16 Mar 2017 20:11:20 +0000 (15:11 -0500)]
fuser: free various linked lists

Noticed when running tool in valgrind

7 years agoSupport running with child namespaces
Debabrata Banerjee [Wed, 22 Feb 2017 19:09:42 +0000 (14:09 -0500)]
Support running with child namespaces

By default killall should not kill processes in a namespace it is not
part of. If this is allowed, it allows callers to break namespaces they
did not expect to affect, requiring rewrite of all callers to fix.

So by default, we should work in the current namespace. If -N 0 is
specified, then we look at all namespaces, and if any other pid is
specified we look in only that namespace.

Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com>
8 years agopeekfd: usage help screen now contains long options list too
Jan Rybar [Tue, 20 Dec 2016 13:27:59 +0000 (14:27 +0100)]
peekfd: usage help screen now contains long options list too
Resolves Red Hat Bugzilla #1401593

8 years agoChanged version to 23.0 v23.0rc1
Craig Small [Sat, 3 Dec 2016 09:36:53 +0000 (20:36 +1100)]
Changed version to 23.0

8 years agonls: update po files ready for distribution
Craig Small [Sat, 3 Dec 2016 09:33:08 +0000 (20:33 +1100)]
nls: update po files ready for distribution

8 years agopstree: some minor code cleanups
Craig Small [Fri, 2 Dec 2016 11:05:01 +0000 (22:05 +1100)]
pstree: some minor code cleanups

8 years agoAvoid possible crash and memory leak in killall
Radu Rendec [Thu, 30 Jun 2016 16:15:21 +0000 (18:15 +0200)]
Avoid possible crash and memory leak in killall

In the case of a command line match, load_proc_cmdline would return a
pointer that was not obtained from malloc, which then would be freed in
kill_all. This behavior could result in a SIGSEGV.

In the case of an empty command line, load_proc_cmdline would return -1,
causing its internal buffer to be leaked in kill_all.

Signed-off-by: Radu Rendec <radu.rendec@mindbit.ro>
Signed-off-by: Craig Small <csmall@enc.com.au>
8 years agoAdd some Debian references to changelog
Craig Small [Fri, 2 Dec 2016 10:46:08 +0000 (21:46 +1100)]
Add some Debian references to changelog

8 years agoMerge branch 'master' into 'master'
Craig Small [Wed, 21 Sep 2016 11:18:21 +0000 (11:18 +0000)]
Merge branch 'master' into 'master'

Updating manpage info about fuser not seeing other users' files.

Not a bug but a limitation.

See merge request !4

8 years agoUpdate README.md
Craig Small [Sun, 11 Sep 2016 03:29:27 +0000 (03:29 +0000)]
Update README.md

8 years agoUpdating manpage info about fuser not seeing other users' files.
Jan Rybar [Mon, 18 Jul 2016 16:57:31 +0000 (18:57 +0200)]
Updating manpage info about fuser not seeing other users' files.
Not a bug but a limitation.

8 years agopstree: document hide threads option in manpage
Craig Small [Fri, 17 Jun 2016 22:02:27 +0000 (08:02 +1000)]
pstree: document hide threads option in manpage

The previous commit added the -T option to pstree to hide
threads. The man page has been updated to suit.

References:
 commit b9bd5efe2c5f894e25719bbbe9e25879afe5714b

Signed-off-by: Craig Small <csmall@dropbear.xyz>
8 years agoMerge branch 'hide_threads' into 'master'
Craig Small [Fri, 17 Jun 2016 22:00:10 +0000 (22:00 +0000)]
Merge branch 'hide_threads' into 'master'

Add option --hide-threads (-T) to hide threads from display

On desktop systems, there will usually be a gazillion of threads
(hello chrome!) that clutter the display. Add an option to optionally
hide these from showing up at all.

PS: Fwiw, I'd personally prefer to have threads hidden by default. If that's desired, I can update the patch to reverse the logic.

Cheers,
Christoph

See merge request !3

8 years agoprstat: Remove duplicate option in man page
Jan Rybar [Fri, 17 Jun 2016 21:55:26 +0000 (07:55 +1000)]
prstat: Remove duplicate option in man page

Fixes issue !3
Both raw and versions options appeared twice.

Signed-off-by: Craig Small <csmall@dropbear.xyz>
8 years agoAdd option --hide-threads (-T) to hide threads from display
Christoph Berg [Sat, 21 May 2016 08:41:24 +0000 (10:41 +0200)]
Add option --hide-threads (-T) to hide threads from display

On desktop systems, there will usually be a gazillion of threads
(hello chrome!) that clutter the display. Add an option to optionally
hide these from showing up at all.

8 years agoMerge branch 'fix/pslog_unterminated_string' into 'master'
Craig Small [Sun, 1 May 2016 05:36:22 +0000 (05:36 +0000)]
Merge branch 'fix/pslog_unterminated_string' into 'master'

pslog: fix unterminated string and memory leaks

Adding null terminator to buf string.

Cleaned a memory leak  calling closedir on /proc/$PID/fd,  that was left open.

`==29483==
==29483== HEAP SUMMARY:
==29483==     in use at exit: 0 bytes in 0 blocks
==29483==   total heap usage: 256 allocs, 256 frees, 70,990 bytes allocated
==29483==
==29483== All heap blocks were freed -- no leaks are possible
==29483==
==29483== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==29483== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)`

See merge request !2

8 years agopslog: fix unterminated string and memory leaks
Vito Mule [Sun, 1 May 2016 01:52:57 +0000 (02:52 +0100)]
pslog: fix unterminated string and memory leaks

8 years agomisc: Update gitignore and news for pslog
Craig Small [Sat, 30 Apr 2016 23:41:06 +0000 (09:41 +1000)]
misc: Update gitignore and news for pslog

8 years agoMerge branch 'master' into 'master'
Craig Small [Sat, 30 Apr 2016 23:14:40 +0000 (23:14 +0000)]
Merge branch 'master' into 'master'

Adding pslog(1): Report current log(s) path of a process

Simple binary to find the log(s) path for a given PID. Please review my code and highlight any mistake or anything missing. Thanks very much for your time.

`root@agent5:/home/vmule# pslog 701
Pid no 701:
Log path: /var/log/nginx/error.log
Log path: /var/log/nginx/error.log
Log path: /var/log/nginx/access.log
Log path: /var/log/nginx/www.puppetlabs.vm.access.log
Log path: /var/log/nginx/www.puppetlabs.vm.error.log`

See merge request !1

8 years agoadding plog
Vito Mule [Thu, 28 Apr 2016 17:30:41 +0000 (18:30 +0100)]
adding plog

8 years agoUpdate README.md
Craig Small [Wed, 27 Apr 2016 12:47:48 +0000 (12:47 +0000)]
Update README.md

8 years agoMerge branch 'master' of gitlab.com:psmisc/psmisc
Craig Small [Thu, 28 Apr 2016 12:19:39 +0000 (22:19 +1000)]
Merge branch 'master' of gitlab.com:psmisc/psmisc

8 years agokillall: fix malloc branch logic for pgid
Craig Small [Thu, 28 Apr 2016 12:16:51 +0000 (22:16 +1000)]
killall: fix malloc branch logic for pgid

A fix to remove some spurious code removed a branch and an else
but did not invert the if check like it should. It meant if
process groups were used the spaces was not allocated.

References:
 commit 1fcc2b17ab8e88a023d3cd38057e9a5fe93d7313

8 years agoUpdate README.md
Craig Small [Wed, 27 Apr 2016 12:47:48 +0000 (12:47 +0000)]
Update README.md

8 years agomisc: Fix some memory leaks from coverity
Craig Small [Mon, 25 Apr 2016 12:35:47 +0000 (22:35 +1000)]
misc: Fix some memory leaks from coverity

Ran psmisc through coverity scan and it found a few places
where programs were not checking return values or freeing
malloc'ed items.

8 years agomisc: Update README.md
Craig Small [Mon, 25 Apr 2016 11:04:00 +0000 (21:04 +1000)]
misc: Update README.md

The README appears a little odd on gitlab, this should make things
clearer.

8 years agofuser,prtstat: use standard sscanf flag for alloc
Craig Small [Mon, 25 Apr 2016 06:57:35 +0000 (16:57 +1000)]
fuser,prtstat: use standard sscanf flag for alloc

Previously GNU libc supported the a option in scanf, e.g.
%as to allocate the buffer for the scanned string. The manual
recommends to use m instead as it follows the standard.

8 years agofuser/killall/pstree: Mention all flags in usage
Sebastian Rasmussen [Sun, 20 Mar 2016 12:50:59 +0000 (13:50 +0100)]
fuser/killall/pstree: Mention all flags in usage

Make sure that all flags are mentioned in each tool and
also sort out stray whitespace and improper linebreaking.

8 years agofuser: increase mpoint length of for octal escape
Jaromír Cápík [Mon, 25 Apr 2016 01:25:38 +0000 (11:25 +1000)]
fuser: increase mpoint length of for octal escape

The mount point is set to PATH_MAX but if octal escaping is used
then it will exceed this limit.

Fixes rhbz#1078887 (no url, its a restricted access bug)

References:
 https://sourceforge.net/p/psmisc/patches/37/

Signed-off-by: Craig Small <csmall@enc.com.au>
8 years agotest: Update gitlab test for shared runner
Craig Small [Mon, 25 Apr 2016 00:36:42 +0000 (10:36 +1000)]
test: Update gitlab test for shared runner

The shared runner needs additional files to build psmisc
and run the tests.

8 years agoMinor issues about verbose in fuser.1
Craig Small [Mon, 4 Apr 2016 11:35:04 +0000 (21:35 +1000)]
Minor issues about verbose in fuser.1

access->accessed
Added note about access '.' in verbose mode.

References:
 https://sourceforge.net/p/psmisc/bugs/70/

8 years agofuser: include sysmacros.h for makedev
Mike Frysinger [Mon, 7 Mar 2016 19:58:33 +0000 (14:58 -0500)]
fuser: include sysmacros.h for makedev

BSD/Linux define makedev in the sysmacros.h header.  Include it directly
instead of relying on types.h pulling it in for us.

Signed-off-by: Craig Small <csmall@enc.com.au>
9 years agofixed gitlab ci file
Craig Small [Sat, 24 Oct 2015 03:47:04 +0000 (14:47 +1100)]
fixed gitlab ci file

9 years agobuildsys: attempt to downgrade gettext version
Craig Small [Tue, 7 Jul 2015 12:40:05 +0000 (22:40 +1000)]
buildsys: attempt to downgrade gettext version