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);
}
}
}
- CydiaWriteSources();
+ _root(true) CydiaWriteSources();
}
// Navigation controller for the queuing badge.
return true;
}
+- (void) suspendReturningToLastApp:(BOOL)returning {
+ if ([self isSafeToSuspend])
+ [super suspendReturningToLastApp:returning];
+}
+
+- (void) suspend {
+ if ([self isSafeToSuspend])
+ [super suspend];
+}
+
+- (void) applicationSuspend {
+ if ([self isSafeToSuspend])
+ [super applicationSuspend];
+}
+
- (void) applicationSuspend:(__GSEvent *)event {
if ([self isSafeToSuspend])
[super applicationSuspend:event];
} broken = nil;
/* }}} */
- CydiaWriteSources();
+ _root(true) CydiaWriteSources();
_trace();
_root(true) MetaFile_.Open("/var/lib/cydia/metadata.cb0");