patch-2.1.115 linux/fs/devpts/root.c
Next file: linux/fs/dquot.c
Previous file: linux/fs/devpts/inode.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Thu Aug  6 02:29:45 1998
-  Orig file: 
v2.1.114/linux/fs/devpts/root.c
-  Orig date: 
Wed Apr  8 19:36:28 1998
diff -u --recursive --new-file v2.1.114/linux/fs/devpts/root.c linux/fs/devpts/root.c
@@ -98,7 +98,7 @@
 		filp->f_pos = ++nr;
 		/* fall through */
 	default:
-		while ( nr < NR_PTYS+2 ) {
+		while ( nr < 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, slshen@lbl.gov