ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/vendor-crypto/openssh/dist/openbsd-compat/bsd-openpty.c
(Generate patch)

Comparing vendor-crypto/openssh/dist/openbsd-compat/bsd-openpty.c (file contents):
Revision 12134 by laffer1, Thu Dec 5 12:55:03 2013 UTC vs.
Revision 12135 by laffer1, Fri Jan 18 20:47:32 2019 UTC

# Line 122 | Line 122 | openpty(int *amaster, int *aslave, char *name, struct
122          }
123  
124          /*
125 <         * Try to push the appropriate streams modules, as described
125 >         * Try to push the appropriate streams modules, as described
126           * in Solaris pts(7).
127           */
128          ioctl(*aslave, I_PUSH, "ptem");
# Line 184 | Line 184 | openpty(int *amaster, int *aslave, char *name, struct
184          struct termios tio;
185  
186          for (i = 0; i < num_ptys; i++) {
187 <                snprintf(ptbuf, sizeof(ptbuf), "/dev/pty%c%c",
187 >                snprintf(ptbuf, sizeof(ptbuf), "/dev/pty%c%c",
188                      ptymajors[i / num_minors], ptyminors[i % num_minors]);
189                  snprintf(ttbuf, sizeof(ttbuf), "/dev/tty%c%c",
190                      ptymajors[i / num_minors], ptyminors[i % num_minors]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines