Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1--- xjump/src/main.c 2018-02-20 09:15:15.608807657 +0100 2+++ xjump-patched/src/main.c 2018-02-20 09:15:34.148949100 +0100 3@@ -604,18 +604,6 @@ 4 * optimistic privilege dropping function. */ 5 setgroups(0, NULL); 6 7- if (setresgid(-1, realgid, realgid) != 0) { 8- perror("Could not drop setgid privileges. Aborting."); 9- exit(1); 10- } 11- 12- /* Dropping user privileges must come last. 13- * Otherwise we won't be able to drop group privileges anymore */ 14- if (setresuid(-1, realuid, realuid) != 0) { 15- perror("Could not drop setuid privileges. Aborting."); 16- exit(1); 17- } 18- 19 /* From now on we run with regular user privileges */ 20 21 static XtActionsRec a_table[] = {