X-Git-Url: https://ruderich.org/simon/gitweb/?p=ptyas%2Fptyas.git;a=blobdiff_plain;f=ptyas.c;h=4b7b208856e88f53a43abc833ea4dde6a7c5bcdb;hp=2d0614d8865936de8548f3d497d53298ebd668f1;hb=a39434b70dfe6428b3c8ef5061b6f0a1475974b5;hpb=f345aeadd2754d2cd1fd4c616f9a88ef8c9ea513 diff --git a/ptyas.c b/ptyas.c index 2d0614d..4b7b208 100644 --- a/ptyas.c +++ b/ptyas.c @@ -82,9 +82,11 @@ static void open_pty_or_die(int *pty_master, int *pty_slave, uid_t uid) { if (*pty_slave == -1) { die("open slave tty"); } - /* The user must be able to write to the new TTY. Normally grantpt() would + /* + * The user must be able to write to the new TTY. Normally grantpt() would * do this for us, but we don't trust the user and thus don't want to pass - * the pty_master to a process running under that uid. */ + * the pty_master to a process running under that uid. + */ if (chown(slave_path, uid, (gid_t)-1) != 0) { die("chown slave tty"); }