it's really 666, not whatever the default is
authorMike Karels <karels@ucbvax.Berkeley.EDU>
Sun, 21 Apr 1991 01:42:45 +0000 (17:42 -0800)
committerMike Karels <karels@ucbvax.Berkeley.EDU>
Sun, 21 Apr 1991 01:42:45 +0000 (17:42 -0800)
SCCS-vsn: libexec/rlogind/rlogind.c 5.53

usr/src/libexec/rlogind/rlogind.c

index a0e9781..ce43adc 100644 (file)
@@ -12,7 +12,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)rlogind.c  5.52 (Berkeley) %G%";
+static char sccsid[] = "@(#)rlogind.c  5.53 (Berkeley) %G%";
 #endif /* not lint */
 
 #ifdef KERBEROS
 #endif /* not lint */
 
 #ifdef KERBEROS
@@ -461,10 +461,10 @@ cleanup()
        p = line + sizeof(_PATH_DEV) - 1;
        if (logout(p))
                logwtmp(p, "", "");
        p = line + sizeof(_PATH_DEV) - 1;
        if (logout(p))
                logwtmp(p, "", "");
-       (void)chmod(line, DEFFILEMODE);
+       (void)chmod(line, 0666);
        (void)chown(line, 0, 0);
        *p = 'p';
        (void)chown(line, 0, 0);
        *p = 'p';
-       (void)chmod(line, DEFFILEMODE);
+       (void)chmod(line, 0666);
        (void)chown(line, 0, 0);
        shutdown(netf, 2);
        exit(1);
        (void)chown(line, 0, 0);
        shutdown(netf, 2);
        exit(1);