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

Diff for /src/usr.bin/ftp/cmds.c between version 1.8 and 1.9

version 1.8, 1996/12/24 20:00:04 version 1.9, 1996/12/24 21:22:10
Line 808 
Line 808 
                 return (cp);                  return (cp);
         }          }
         if (ftemp == NULL) {          if (ftemp == NULL) {
                 mode_t um;  
   
                 (void) strcpy(temp, _PATH_TMPFILE);                  (void) strcpy(temp, _PATH_TMPFILE);
                 um = umask(0600);  
                 fd = mkstemp(temp);                  fd = mkstemp(temp);
                 if (fd < 0) {                  if (fd < 0) {
                         printf ("temporary file %s already exists\n", temp);                          printf ("temporary file %s already exists\n", temp);
                         return NULL;                          return NULL;
                 }                  }
                 close (fd);                  close (fd);
                 (void) umask(um);  
                 oldverbose = verbose, verbose = 0;                  oldverbose = verbose, verbose = 0;
                 oldhash = hash, hash = 0;                  oldhash = hash, hash = 0;
                 if (doswitch) {                  if (doswitch) {

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9