commit | 3e6045ecfdda45023de0474779605622b6ba2f23 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Fri May 17 19:25:10 2013 -0700 |
committer | Kir Kolyshkin <kir@openvz.org> | Fri May 17 19:27:41 2013 -0700 |
tree | d97869012be61f6964fcae3323e17932adccc68d | |
parent | cf1abe17633f1bfbdef58061acab284374a50afd [diff] |
src/lib/env.c: introduce and use check_local_ugid() Move the user mismatch test from vps_start_custom() to a separate function check_local_ugid(). Use shorter variable names. While at it, check return from stat() and error out if it fails. It's cleaner and more readable that way. Signed-off-by: Kir Kolyshkin <kir@openvz.org>