patch-2.3.99-pre7 linux/fs/devpts/root.c
Next file: linux/fs/dquot.c
Previous file: linux/fs/devfs/base.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon May 8 15:56:08 2000
- Orig file:
v2.3.99-pre6/linux/fs/devpts/root.c
- Orig date:
Tue Mar 7 14:32:26 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/fs/devpts/root.c linux/fs/devpts/root.c
@@ -62,7 +62,7 @@
filp->f_pos = ++nr;
/* fall through */
default:
- while ( nr < sbi->max_ptys ) {
+ while ( nr - 2 < sbi->max_ptys ) {
int ptynr = nr - 2;
if ( sbi->inodes[ptynr] ) {
genptsname(numbuf, ptynr);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)