| Summary: | sftp segfaults on an attempt to up/download a nonexistent file | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Peter Pentchev <roam> |
| Component: | sftp | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> |
| Status: | CLOSED WORKSFORME | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | -current | ||
| Hardware: | ix86 | ||
| OS: | FreeBSD | ||
| URL: | http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34019 | ||
|
Description
Peter Pentchev
2002-01-18 21:15:12 AEDT
Are you sure it is not your glob() implementation that is incorrect here? sftp relies on glob to return non-zero (i.e. GLOB_NOMATCH) when no files are matched. This works correctly on Linux, Solaris and OpenBSD. Resolution: FreeBSD's glob function doesn't support GLOB_NOMATCH (which AFAIK is a POSIX requirement). FreeBSD will patch their shipped version of sftp for the upcoming release and will implement GLOB_NOMATCH in future. The URL attached to this bug includes the patch they intend to apply (it also contains a GLOB_NOMATCH patch) Mass change of RESOLVED bugs to CLOSED |