summaryrefslogtreecommitdiff
path: root/cydo.cpp
blob: 458361620c08e33a8abf8cacb622e97f45bc4a9b (plain)
1
2
3
4
5
6
7
8
9
#include <unistd.h>

int main(int argc, char *argv[]) {
    setuid(0);
    setgid(0);
    argv[0] = "/usr/bin/dpkg";
    execv(argv[0], argv);
    return 1;
}