fixed bug in nomesg that would chmod . to zero.
authorMark Horton <mark@ucbvax.Berkeley.EDU>
Sat, 17 Oct 1981 01:06:40 +0000 (17:06 -0800)
committerMark Horton <mark@ucbvax.Berkeley.EDU>
Sat, 17 Oct 1981 01:06:40 +0000 (17:06 -0800)
SCCS-vsn: usr.bin/ex/ex_put.c 7.7

usr/src/usr.bin/ex/ex_put.c

index d62dffd..ceeaf0d 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (c) 1981 Regents of the University of California */
 /* Copyright (c) 1981 Regents of the University of California */
-static char *sccsid = "@(#)ex_put.c    7.6     %G%";
+static char *sccsid = "@(#)ex_put.c    7.7     %G%";
 #include "ex.h"
 #include "ex_tty.h"
 #include "ex_vis.h"
 #include "ex.h"
 #include "ex_tty.h"
 #include "ex_vis.h"
@@ -1023,7 +1023,7 @@ tostop()
 {
        putpad(VE);
        putpad(KE);
 {
        putpad(VE);
        putpad(KE);
-       if (!value(MESG))
+       if (!value(MESG) && ttynbuf[0]>1)
                chmod(ttynbuf, ttymesg);
 }
 
                chmod(ttynbuf, ttymesg);
 }