summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index a2d65cc..a6d5e89 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -247,11 +247,13 @@ struct Root {
root_ = true;
_trace();
_assert(setreuid(real ? 0 : 501, 0) != -1);
+ _assert(setregid(real ? 0 : 501, 0) != -1);
}
~Root() {
root_ = false;
_trace();
+ _assert(setregid(501, 501) != -1);
_assert(setreuid(501, 501) != -1);
}