[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#189879: libc6: 2.5.68 changed the way devfs+devpts works



Package: libc6
Version: 2.3.1-16
Severity: wishlist

 You have to mount devpts now.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux ysabell 2.5.68 #1 Sun Apr 20 19:18:43 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=en_US

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

-- no debconf information


-- 
Marcelo             | He'd never realized that, deep down inside, what he
mmagallo@debian.org | really wanted to do was make things go splat.
                    |         -- (Terry Pratchett, Reaper Man)
--- devpts.sh.orig	2003-04-20 20:59:49.000000000 +0200
+++ devpts.sh	2003-04-20 21:05:26.000000000 +0200
@@ -13,8 +13,16 @@
 devpts_avail=`grep -qci '[<[:space:]]devpts' /proc/filesystems || true`
 devpts_mounted=`grep -qci '/dev/pts' /proc/mounts || true`
 devfs_mounted=`grep -qci '[<[:space:]]/dev[>[:space:]].*devfs' /proc/mounts || true`
+kernel_version=0
 
-if [ $devfs_mounted = 0 ] && [ $devpts_avail != 0 ]
+OIFS="$IFS"
+IFS=.
+for n in `uname -r` ; do
+    kernel_version=`expr $kernel_version \* 1000 + $n`
+done
+IFS="$OIFS"
+
+if [ "$devfs_mounted" = 0 ] || [ "$kernel_version" -ge 2005068 ] && [ "$devpts_avail" != 0 ]
 then
 	#
 	#	Create mountpoint and multiplexor device.

Reply to: