Source-Changes-HG archive

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

[src/trunk]: src/etc/etc.i386 Make sure fd is a directory before we df it.



details:   https://anonhg.NetBSD.org/src/rev/e0c42d15cb30
branches:  trunk
changeset: 473592:e0c42d15cb30
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jun 09 01:39:29 1999 +0000

description:
Make sure fd is a directory before we df it.

diffstat:

 etc/etc.i386/MAKEDEV |  14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r aa810cb3d789 -r e0c42d15cb30 etc/etc.i386/MAKEDEV
--- a/etc/etc.i386/MAKEDEV      Tue Jun 08 23:42:36 1999 +0000
+++ b/etc/etc.i386/MAKEDEV      Wed Jun 09 01:39:29 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.85 1999/05/31 11:14:07 is Exp $
+#      $NetBSD: MAKEDEV,v 1.86 1999/06/09 01:39:29 christos Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -105,12 +105,16 @@
 umask 77
 
 # Check if we have fdesc mounted
-df fd | grep -q fdesc
-if [ $? = 0 ]; then
-       nofdesc=false
+if [ -d fd ]; then
+       df fd | grep -q fdesc
+       if [ $? = 0 ]; then
+               nofdesc=false
+       else
+               nofdesc=true
+       fi
 else
        nofdesc=true
-fi
+di
 
 for i
 do



Home | Main Index | Thread Index | Old Index