* Run the login shell or command as the given user in a new pty to prevent
* terminal injection attacks.
*
- * Copyright (C) 2016 Simon Ruderich
+ * Copyright (C) 2016-2017 Simon Ruderich
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
die("setgroups");
}
if (getgroups(0, NULL) != 0) {
- die_fmt("failed to drop all groups");
+ die_fmt("failed to drop all supplementary groups");
}
/* Dropping groups may require privileges, do that first. */
if (ppoll(fds, nfds, NULL /* no timeout */, &sigset_old) == -1) {
if (errno == EAGAIN || errno == EINTR) {
continue;
- } else {
- perror("poll");
}
+ perror("poll");
break;
}