commit | 6dbcc3a43f0292b2af58550a63a767cef6d84780 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Fri Jun 10 20:14:57 2011 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Fri Jun 10 20:14:57 2011 +0400 |
tree | 99cc3b591110ebef2d3a2f4b293370b6d466f7a9 | |
parent | cb79f9a9c49cd1552dafa87f126b7765dd7f390c [diff] |
vzctl set: fix check for changing quotaugidlimit Commit 4e61f7119 was horribly wrong. First, it did some checks even if new_res->dq.ugidlimit was not set (i.e. there was no --quotaugidlimit option). Second, it tried to dereference it which lead for SEGV. Fix both cases, and moved the code to a separate function for much better readability. http://bugzilla.openvz.org/1896 Reported-by: Roman Veretelnikov <roman@rover.pp.ru> Signed-off-by: Kir Kolyshkin <kir@openvz.org>