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

Diff for /src/usr.bin/mail/v7.local.c between version 1.6 and 1.7

version 1.6, 1997/06/16 20:57:06 version 1.7, 1997/07/13 21:21:18
Line 1 
Line 1 
 /*      $OpenBSD$       */  /*      $OpenBSD$       */
 /*      $NetBSD: v7.local.c,v 1.7 1996/06/08 19:48:44 christos Exp $    */  /*      $NetBSD: v7.local.c,v 1.8 1997/05/13 06:15:58 mikel Exp $       */
   
 /*  /*
  * Copyright (c) 1980, 1993   * Copyright (c) 1980, 1993
Line 82 
Line 82 
 {  {
   
         if (value("keep") != NOSTR || rm(mailname) < 0)          if (value("keep") != NOSTR || rm(mailname) < 0)
                 close(creat(mailname, 0600));                  (void)close(creat(mailname, 0600));
 }  }
   
 /*  /*
Line 95 
Line 95 
         uid_t uid;          uid_t uid;
   
         if ((np = getenv("USER")) != NOSTR)          if ((np = getenv("USER")) != NOSTR)
                 return np;                  return(np);
         if ((np = getenv("LOGNAME")) != NOSTR)          if ((np = getenv("LOGNAME")) != NOSTR)
                 return np;                  return(np);
         if ((np = getname(uid = getuid())) != NOSTR)          if ((np = getname(uid = getuid())) != NOSTR)
                 return np;                  return(np);
         printf("Cannot associate a name with uid %u\n", (unsigned)uid);          printf("Cannot associate a name with uid %u\n", (unsigned)uid);
         return NOSTR;          return(NOSTR);
 }  }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7