Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 078ca5e3 authored by Rom Lemarchand's avatar Rom Lemarchand Committed by Android (Google) Code Review
Browse files

Merge "logwrap: remove unnecessary call to setuid/setgid"

parents e74313ba cfb5ec3c
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -262,12 +262,6 @@ int logwrap(int argc, char* argv[], int *status) {

        signal_fd_write = sockets[0];

        // switch user and group to "log"
        // this may fail if we are not root,
        // but in that case switching user/group is unnecessary
        setgid(AID_LOG);
        setuid(AID_LOG);

        rc = parent(argv[0], parent_ptty, sockets[1], pid, status);
    }