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

Diff for /src/usr.bin/xinstall/xinstall.c between version 1.74 and 1.75

version 1.74, 2020/04/07 09:40:09 version 1.75, 2021/10/24 21:24:18
Line 256 
Line 256 
         }          }
   
         if (!devnull) {          if (!devnull) {
                 if ((from_fd = open(from_name, O_RDONLY, 0)) == -1)                  if ((from_fd = open(from_name, O_RDONLY)) == -1)
                         err(1, "%s", from_name);                          err(1, "%s", from_name);
         }          }
   
Line 276 
Line 276 
                  *  that does not work in-place -- like gnu binutils strip.                   *  that does not work in-place -- like gnu binutils strip.
                  */                   */
                 close(to_fd);                  close(to_fd);
                 if ((to_fd = open(tempfile, O_RDONLY, 0)) == -1)                  if ((to_fd = open(tempfile, O_RDONLY)) == -1)
                         err(1, "stripping %s", to_name);                          err(1, "stripping %s", to_name);
         }          }
   
Line 288 
Line 288 
                 struct stat temp_sb;                  struct stat temp_sb;
   
                 /* Re-open to_fd using the real target name. */                  /* Re-open to_fd using the real target name. */
                 if ((to_fd = open(to_name, O_RDONLY, 0)) == -1)                  if ((to_fd = open(to_name, O_RDONLY)) == -1)
                         err(1, "%s", to_name);                          err(1, "%s", to_name);
   
                 if (fstat(temp_fd, &temp_sb)) {                  if (fstat(temp_fd, &temp_sb)) {

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.75