summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authordjm <djm>2000-09-29 12:01:36 +0000
committerdjm <djm>2000-09-29 12:01:36 +0000
commit27a840466c75d594c450eae709dc5aeeca8c5bab (patch)
tree8a95134daab502920a6232c839c0acdfc54a335c /channels.c
parent3aed815c8d1460d46cfe5b196e426d168501330d (diff)
downloadopenssh-27a840466c75d594c450eae709dc5aeeca8c5bab.tar.gz
- (djm) Merged big SCO portability patch from Tim Rice
<tim@multitalents.net>
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels.c b/channels.c
index 43253b3a..df56e949 100644
--- a/channels.c
+++ b/channels.c
@@ -1317,7 +1317,7 @@ channel_stop_listening()
switch (channels[i].type) {
case SSH_CHANNEL_AUTH_SOCKET:
close(channels[i].sock);
- remove(channels[i].path);
+ unlink(channels[i].path);
channel_free(i);
break;
case SSH_CHANNEL_PORT_LISTENER:
@@ -2139,7 +2139,7 @@ auth_get_socket_name()
void
cleanup_socket(void)
{
- remove(channel_forwarded_auth_socket_name);
+ unlink(channel_forwarded_auth_socket_name);
rmdir(channel_forwarded_auth_socket_dir);
}