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

Diff for /src/usr.bin/rsync/downloader.c between version 1.5 and 1.6

version 1.5, 2019/02/12 19:10:28 version 1.6, 2019/02/12 19:13:59
Line 568 
Line 568 
                 goto out;                  goto out;
         }          }
   
           /*
            * Conditionally adjust group id.
            * FIXME: remember the original file's group id and don't
            * reassign it if it's the same.
            * If we have an EPERM, report it but continue on: this just
            * means that we're mapping into an unknown (or disallowed)
            * group identifier.
            */
   
         if (sess->opts->preserve_gids) {          if (sess->opts->preserve_gids) {
                 if (fchown(p->fd, -1, f->st.gid) == -1) {                  if (fchown(p->fd, -1, f->st.gid) == -1) {
                         if (errno != EPERM) {                          if (errno != EPERM) {
                                 ERR(sess, "%s: fchown", p->fname);                                  ERR(sess, "%s: fchown", p->fname);
                                 goto out;                                  goto out;
                         }                          }
                         WARNX(sess, "%s: gid not available to user: %u",                          WARNX(sess, "%s: gid unknown or not available "
                                 f->path, f->st.gid);                                  "to user: %u", f->path, f->st.gid);
                 } else                  } else
                         LOG4(sess, "%s: updated gid", f->path);                          LOG4(sess, "%s: updated gid", f->path);
         }          }

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