[BACK]Return to sftp-common.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sftp-common.c between version 1.21 and 1.22

version 1.21, 2010/01/13 01:40:16 version 1.22, 2010/01/14 23:41:49
Line 194 
Line 194 
         char sbuf[FMT_SCALED_STRSIZE];          char sbuf[FMT_SCALED_STRSIZE];
   
         strmode(st->st_mode, mode);          strmode(st->st_mode, mode);
         if (!remote && (pw = getpwuid(st->st_uid)) != NULL) {          if (!remote) {
                 user = pw->pw_name;                  user = user_from_uid(st->st_uid, 0);
         } else {          } else {
                 snprintf(ubuf, sizeof ubuf, "%u", (u_int)st->st_uid);                  snprintf(ubuf, sizeof ubuf, "%u", (u_int)st->st_uid);
                 user = ubuf;                  user = ubuf;
         }          }
         if (!remote && (gr = getgrgid(st->st_gid)) != NULL) {          if (!remote) {
                 group = gr->gr_name;                  group = group_from_gid(st->st_gid, 0);
         } else {          } else {
                 snprintf(gbuf, sizeof gbuf, "%u", (u_int)st->st_gid);                  snprintf(gbuf, sizeof gbuf, "%u", (u_int)st->st_gid);
                 group = gbuf;                  group = gbuf;

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22