|
Lines 770-776
Link Here
|
| 770 |
mode = 0666; |
770 |
mode = 0666; |
| 771 |
|
771 |
|
| 772 |
if ((a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) && |
772 |
if ((a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) && |
| 773 |
(!S_ISREG(a->perm))) { |
773 |
!S_ISREG(a->perm) && !S_ISFIFO(a->perm)) { |
| 774 |
error("Cannot download non-regular file: %s", remote_path); |
774 |
error("Cannot download non-regular file: %s", remote_path); |
| 775 |
return(-1); |
775 |
return(-1); |
| 776 |
} |
776 |
} |
|
Lines 1005-1011
Link Here
|
| 1005 |
close(local_fd); |
1005 |
close(local_fd); |
| 1006 |
return(-1); |
1006 |
return(-1); |
| 1007 |
} |
1007 |
} |
| 1008 |
if (!S_ISREG(sb.st_mode)) { |
1008 |
if (!S_ISREG(sb.st_mode) && !S_ISFIFO(sb.st_mode)) { |
| 1009 |
error("%s is not a regular file", local_path); |
1009 |
error("%s is not a regular file", local_path); |
| 1010 |
close(local_fd); |
1010 |
close(local_fd); |
| 1011 |
return(-1); |
1011 |
return(-1); |