View | Details | Raw Unified | Return to bug 428 | Differences between
and this patch

Collapse All | Expand All

(-)../openssh-3.4p1/sftp-server.c (-1 / +10 lines)
Lines 907-915 Link Here
907
               send_status(id, errno_to_portable(errno));
941
               send_status(id, errno_to_portable(errno));
908
       else {
942
       else {
909
               Stat s;
943
               Stat s;
910
944
               struct stat st;
945
               int status;
911
               link[len] = '\0';
946
               link[len] = '\0';
912
               attrib_clear(&s.attrib);
947
               attrib_clear(&s.attrib);
948
949
               status = lstat(path, &st);
950
               if (status == 0) {
951
                       stat_to_attrib(&st, &s.attrib);
952
               }
953
               else {
954
                       send_status(id, errno_to_portable(errno));
955
               }
913
               s.name = s.long_name = link;
956
               s.name = s.long_name = link;
914
               send_names(id, 1, &s);
957
               send_names(id, 1, &s);
915
       }
958
       }

Return to bug 428