[Bug 1797] New: Arguments to upload_dir_internal() in sftp-client.c are swapped

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Jul 15 04:13:25 EST 2010


https://bugzilla.mindrot.org/show_bug.cgi?id=1797

           Summary: Arguments to upload_dir_internal() in sftp-client.c
                    are swapped
           Product: Portable OpenSSH
           Version: -current
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sftp
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: imorgan at nas.nasa.gov


The fifth and sixth arguments to upload_dir_internal() are swapped.

1520-           } else if (S_ISDIR(sb.st_mode)) {
1521-                   if (strcmp(filename, ".") == 0 ||
1522-                       strcmp(filename, "..") == 0)
1523-                           continue;
1524-
1525:                   if (upload_dir_internal(conn, new_src, new_dst,
1526-                       pflag, depth + 1, printflag) == -1)
1527-                           ret = -1;
1528-           } else if (S_ISREG(sb.st_mode)) {
1529-                   if (do_upload(conn, new_src, new_dst, pflag) ==
-1) {
1530-                           error("Uploading of file %s to %s
failed!",

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list