]> git.ipfire.org Git - thirdparty/util-linux.git/commit
prlimit: don't share pointer for old and new in prlimit(2)
authorKarel Zak <kzak@redhat.com>
Wed, 16 Nov 2011 12:30:05 +0000 (13:30 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Nov 2011 12:30:05 +0000 (13:30 +0100)
commit8b6e4503882a3ffe8c7b2b47c58f41d364b09ef4
tree8f4b1c4550216775183ad33ce35e137c539a6458
parent94c0166257748110181f1a18d5851d931c2d1a12
prlimit: don't share pointer for old and new in prlimit(2)

This patch makes the code more robust. We should not share the same
pointer for old and new arguments for prlimit(2) syscall.

Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/prlimit.c