[BACK]Return to temp.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mail

Diff for /src/usr.bin/mail/temp.c between version 1.11 and 1.12

version 1.11, 2000/08/02 04:10:48 version 1.12, 2001/11/21 15:26:39
Line 36 
Line 36 
   
 #ifndef lint  #ifndef lint
 #if 0  #if 0
 static char sccsid[] = "@(#)temp.c      8.1 (Berkeley) 6/6/93";  static const char sccsid[] = "@(#)temp.c        8.1 (Berkeley) 6/6/93";
 #else  #else
 static char rcsid[] = "$OpenBSD$";  static const char rcsid[] = "$OpenBSD$";
 #endif  #endif
 #endif /* not lint */  #endif /* not lint */
   
Line 51 
Line 51 
  * Give names to all the temporary files that we will need.   * Give names to all the temporary files that we will need.
  */   */
   
 char    *tmpdir;  char *tmpdir;
   
 void  void
 tinit()  tinit(void)
 {  {
         char *cp;          char *cp;
   
Line 75 
Line 75 
          * do a spreserve() after us.           * do a spreserve() after us.
          */           */
         if (myname != NULL) {          if (myname != NULL) {
                 if (getuserid(myname) < 0)                  if (getuserid(myname) == UID_MAX)
                         errx(1, "\"%s\" is not a user of this system", myname);                          errx(1, "\"%s\" is not a user of this system", myname);
         } else {          } else {
                 if ((cp = username()) == NULL) {                  if ((cp = username()) == NULL) {

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12