X-Git-Url: https://ruderich.org/simon/gitweb/?p=ptyas%2Fptyas.git;a=blobdiff_plain;f=ptyas.c;h=a67f8767cbb4e49a59df74bdcd59ff63df839828;hp=71ac027059afc9f87ec5f8508d9e4aee14e71698;hb=af7bb9eee274610bef414eaa97e7686d66d2f352;hpb=b879b5f514fbbf0c6a9fea8791020afaed25a14f diff --git a/ptyas.c b/ptyas.c index 71ac027..a67f876 100644 --- a/ptyas.c +++ b/ptyas.c @@ -119,7 +119,7 @@ static void drop_privileges_or_die(uid_t uid, gid_t gid) { 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. */ @@ -217,9 +217,8 @@ static void proxy_input_between_ttys(int pty_master, int ctty, volatile pid_t *p if (ppoll(fds, nfds, NULL /* no timeout */, &sigset_old) == -1) { if (errno == EAGAIN || errno == EINTR) { continue; - } else { - perror("poll"); } + perror("poll"); break; }