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

Diff for /src/usr.bin/ftp/ruserpass.c between version 1.13 and 1.14

version 1.13, 2002/02/16 21:27:46 version 1.14, 2003/03/31 23:04:07
Line 93 
Line 93 
         struct stat stb;          struct stat stb;
   
         hdir = getenv("HOME");          hdir = getenv("HOME");
         if (hdir == NULL)          if (hdir == NULL || *hdir == '\0')
                 return (0);                  return (0);
         if (strlen(hdir) + sizeof(".netrc") < sizeof(buf)) {          if (strlen(hdir) + sizeof(".netrc") < sizeof(buf)) {
                 (void)sprintf(buf, "%s/.netrc", hdir);                  (void)sprintf(buf, "%s/.netrc", hdir);

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14