use "/usr/spool/mail/<user>.lock" as the lock file (instead of
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 28 Dec 1982 03:10:25 +0000 (19:10 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 28 Dec 1982 03:10:25 +0000 (19:10 -0800)
"/usr/spool/mail/<user>.mail") -- if this is changed, ucb/Mail/lock.c
and bin/mail.c (at a minimum) must be changed also.
The locking primitives should replace all this someday soon.

SCCS-vsn: old/berknet/v6mail.c 4.3

usr/src/old/berknet/v6mail.c

index 200c9fe..0a3d319 100644 (file)
@@ -1,4 +1,4 @@
-static char sccsid[] = "@(#)v6mail.c   4.2     (Berkeley)      %G%";
+static char sccsid[] = "@(#)v6mail.c   4.3     (Berkeley)      %G%";
 
 /*
  * Version 6 Cory mail--
 
 /*
  * Version 6 Cory mail--
@@ -711,7 +711,7 @@ char *file;
        }
        if (locked)
                return(0);
        }
        if (locked)
                return(0);
-       sprintf(curlock,"%s%s",file,".mail");
+       sprintf(curlock,"%s%s",file,".lock");
        sprintf(locktmp,"%s/tmXXXXXX",MAILDIR);
        mktemp(locktmp);
        unlink(locktmp);
        sprintf(locktmp,"%s/tmXXXXXX",MAILDIR);
        mktemp(locktmp);
        unlink(locktmp);