core: normalize error handling a bit, in setup_pam()
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Jan 2016 11:06:39 +0000 (12:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Jan 2016 16:19:19 +0000 (17:19 +0100)
commit7bb70b6e3d6600d4c448c016b71073706460a12e
tree123a4b0014f5569c514deb699b801d1ea940587c
parent3347dd5ea1dba5e27a677954b505bb6a2ee6cd75
core: normalize error handling a bit, in setup_pam()

Assign errno-style errors to a variable called "r" when they happen, the same way we do this in most other calls. It's
bad enough that the error handling part of the function deals with two different error variables (pam_code and r) now,
but before this fix it was even three!
src/core/execute.c