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

Diff for /src/usr.bin/rsync/ids.c between version 1.1 and 1.2

version 1.1, 2019/02/12 19:08:29 version 1.2, 2019/02/12 19:09:12
Line 45 
Line 45 
  * identifiers of the same names.   * identifiers of the same names.
  * Use the remote numeric identifier if we can't find the group OR the   * Use the remote numeric identifier if we can't find the group OR the
  * group has identifier zero.   * group has identifier zero.
    * FIXME: what happens if we don't find the local group (we should
    * really warn about this), but the remote group identifier maps into a
    * different group name for us?
    * These are pretty unexpected things for rsync to do.
    * Another FIXME because we shouldn't let that happen even though the
    * reference rsync does.
  */   */
 void  void
 idents_gid_remap(struct sess *sess, struct ident *gids, size_t gidsz)  idents_gid_remap(struct sess *sess, struct ident *gids, size_t gidsz)
Line 59 
Line 65 
                         gids[i].mapped = gids[i].id;                          gids[i].mapped = gids[i].id;
                 else                  else
                         gids[i].mapped = grp->gr_gid;                          gids[i].mapped = grp->gr_gid;
   
                 LOG4(sess, "remapped group %s: %" PRId32 " -> %" PRId32,                  LOG4(sess, "remapped group %s: %" PRId32 " -> %" PRId32,
                         gids[i].name, gids[i].id, gids[i].mapped);                          gids[i].name, gids[i].id, gids[i].mapped);
         }          }
Line 203 
Line 210 
   
         return 1;          return 1;
 }  }
   

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