summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-02-16 16:52:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-02-16 16:52:55 +0000
commit5bc56294b027e05cc41011e9c058c60e533c0c28 (patch)
treeb9d8667c0a65f76a271f524021b8a5c649c131c9
parent768e613d9211b1f485fd92b6a947fd8634b0c7f2 (diff)
use service "rsync" rather than "873"
-rw-r--r--usr.bin/rsync/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rsync/socket.c b/usr.bin/rsync/socket.c
index 1edaba34421..2a3b470164f 100644
--- a/usr.bin/rsync/socket.c
+++ b/usr.bin/rsync/socket.c
@@ -1,4 +1,4 @@
-/* $Id: socket.c,v 1.10 2019/02/16 16:50:09 deraadt Exp $ */
+/* $Id: socket.c,v 1.11 2019/02/16 16:52:54 deraadt Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -116,7 +116,7 @@ inet_resolve(struct sess *sess, const char *host, size_t *sz)
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_DGRAM; /* DUMMY */
- error = getaddrinfo(host, "873", &hints, &res0);
+ error = getaddrinfo(host, "rsync", &hints, &res0);
LOG2(sess, "resolving: %s", host);