[1/2] kerndat: use PROC_SELF in loginuid test

Submitted by Dmitry Safonov on April 21, 2016, 11:27 a.m.

Details

Message ID 1461238051-30368-2-git-send-email-dsafonov@virtuozzo.com
State Accepted
Series "Loginuid small fixes"
Commit 3f015ee2b99e31fa0e10077caabe1fdd8bf4b44b
Headers show

Commit Message

Dmitry Safonov April 21, 2016, 11:27 a.m.
Impact: little optimization

Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>
---
 criu/kerndat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/criu/kerndat.c b/criu/kerndat.c
index 3b5735b717a2..8636b0707a5c 100644
--- a/criu/kerndat.c
+++ b/criu/kerndat.c
@@ -421,7 +421,7 @@  int kerndat_loginuid(bool only_dump)
 	kdat.has_loginuid = false;
 
 	/* No such file: CONFIG_AUDITSYSCALL disabled */
-	saved_loginuid = parse_pid_loginuid(getpid(), &ret, true);
+	saved_loginuid = parse_pid_loginuid(PROC_SELF, &ret, true);
 	if (ret < 0)
 		return 0;