[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.2 and 1.3

version 1.2, 1996/06/26 05:33:39 version 1.3, 1996/10/28 00:32:30
Line 90 
Line 90 
         hdir = getenv("HOME");          hdir = getenv("HOME");
         if (hdir == NULL)          if (hdir == NULL)
                 hdir = ".";                  hdir = ".";
         (void) sprintf(buf, "%s/.netrc", hdir);          if (strlen(hdir) + 7 < sizeof(buf)) {
                   (void) sprintf(buf, "%s/.netrc", hdir);
           } else {
                   warnx("%s/.netrc: %s", hdir, strerror(ENAMETOOLONG));
                   return (0);
           }
         cfile = fopen(buf, "r");          cfile = fopen(buf, "r");
         if (cfile == NULL) {          if (cfile == NULL) {
                 if (errno != ENOENT)                  if (errno != ENOENT)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3