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

Collapse All | Expand All

(-)../openssh-3.4p1/sftp-client.c (+5 lines)
Lines 946-951 Link Here
946
                               error("Can't set times on \"%s\": %s",
999
                               error("Can't set times on \"%s\": %s",
947
                                     local_path, strerror(errno));
1000
                                     local_path, strerror(errno));
948
               }
1001
               }
1002
               if (pflag && (getuid() == 0 || geteuid() == 0)) {
1003
                       if (chown(local_path, a->uid, a->gid) < 0)
1004
                               error("could not set owner & group on \"%s\": %s
1005
                                       strerror(errno));
1006
               }
949
       }
1007
       }
950
       close(local_fd);
1008
       close(local_fd);
951
       buffer_free(&msg);
1009
       buffer_free(&msg);

Return to bug 427