Bugzilla – Attachment 2378 Details for
Bug 2176
unchecked returned value from ftruncate
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sftp_unchecked_return
sftp-client_ftruncate.diff (text/plain), 758 bytes, created by
Loganaden Velvindron
on 2013-12-01 04:31:45 AEDT
(
hide
)
Description:
sftp_unchecked_return
Filename:
MIME Type:
Creator:
Loganaden Velvindron
Created:
2013-12-01 04:31:45 AEDT
Size:
758 bytes
patch
obsolete
>Index: sftp-client.c >=================================================================== >RCS file: /cvs/openssh/sftp-client.c,v >retrieving revision 1.121 >diff -u -p -r1.121 sftp-client.c >--- sftp-client.c 21 Nov 2013 02:55:44 -0000 1.121 >+++ sftp-client.c 30 Nov 2013 17:30:01 -0000 >@@ -1253,7 +1253,9 @@ do_download(struct sftp_conn *conn, char > "server reordered requests", local_path); > } > debug("truncating at %llu", (unsigned long long)highwater); >- ftruncate(local_fd, highwater); >+ if (ftruncate(local_fd, highwater) == -1) { >+ error("Unable to truncate \"%s\"", local_path); >+ } > } > if (read_error) { > error("Couldn't read from remote file \"%s\" : %s", >@@ -1726,4 +1728,3 @@ path_append(char *p1, char *p2) > > return(ret); > } >-
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2176
: 2378