summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-09-24 00:37:39 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-09-24 00:37:39 -0700
commit06325acfa9b258fd7ab170880a4050fe8c4394b6 (patch)
tree56a1823e20d5a8e9fd6ee2810ef49fe4fc68c7e7
parentc9f3aa21b5f00bb40fc836f25758c357bf7d4efa (diff)
Remove cydo debugging code (it is exploitable :/).
-rw-r--r--cydo.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/cydo.cpp b/cydo.cpp
index 168d3c8..1bc2a22 100644
--- a/cydo.cpp
+++ b/cydo.cpp
@@ -39,12 +39,6 @@ void launch_data_dict_iterate(launch_data_t data, LaunchDataIterator code) {
}
int main(int argc, char *argv[]) {
- auto log(fopen("/tmp/cydia.log", "a+"));
- fprintf(log, "cydo:");
- for (int arg(1); arg < argc; ++arg)
- fprintf(log, " %s", argv[arg]);
- fprintf(log, "\n");
-
auto request(launch_data_new_string(LAUNCH_KEY_GETJOBS));
auto response(launch_msg(request));
launch_data_free(request);
@@ -107,9 +101,6 @@ int main(int argc, char *argv[]) {
return EX_NOPERM;
}
- fflush(log);
- fclose(log);
-
setuid(0);
setgid(0);