diff options
Diffstat (limited to 'sftp-server.c')
-rw-r--r-- | sftp-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp-server.c b/sftp-server.c index 5be2d4db4..8a77e58c2 100644 --- a/sftp-server.c +++ b/sftp-server.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | #include "includes.h" | 24 | #include "includes.h" |
25 | RCSID("$OpenBSD: sftp-server.c,v 1.7 2000/12/09 14:08:27 markus Exp $"); | 25 | RCSID("$OpenBSD: sftp-server.c,v 1.8 2000/12/19 22:43:44 markus Exp $"); |
26 | 26 | ||
27 | #include "ssh.h" | 27 | #include "ssh.h" |
28 | #include "buffer.h" | 28 | #include "buffer.h" |
@@ -854,7 +854,7 @@ process_remove(void) | |||
854 | id = get_int(); | 854 | id = get_int(); |
855 | name = get_string(NULL); | 855 | name = get_string(NULL); |
856 | TRACE("remove id %d name %s", id, name); | 856 | TRACE("remove id %d name %s", id, name); |
857 | ret = remove(name); | 857 | ret = unlink(name); |
858 | status = (ret == -1) ? errno_to_portable(errno) : SSH_FX_OK; | 858 | status = (ret == -1) ? errno_to_portable(errno) : SSH_FX_OK; |
859 | send_status(id, status); | 859 | send_status(id, status); |
860 | xfree(name); | 860 | xfree(name); |