-/* $Id: extern.h,v 1.35 2021/03/22 11:14:42 claudio Exp $ */
+/* $Id: extern.h,v 1.36 2021/03/31 19:45:16 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
int del; /* --delete */
int devices; /* --devices */
int specials; /* --specials */
+ int no_motd; /* --no-motd */
int numeric_ids; /* --numeric-ids */
int one_file_system; /* -x */
char *rsync_path; /* --rsync-path */
-/* $Id: main.c,v 1.52 2021/03/22 11:16:05 claudio Exp $ */
+/* $Id: main.c,v 1.53 2021/03/31 19:45:16 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
{ "verbose", no_argument, &verbose, 1 },
{ "no-verbose", no_argument, &verbose, 0 },
{ "address", required_argument, NULL, 4 },
+ { "no-motd", no_argument, NULL, 6 },
{ NULL, 0, NULL, 0 }};
/* Global pledge. */
if (errstr != NULL)
errx(1, "timeout is %s: %s", errstr, optarg);
break;
+ case 6:
+ opts.no_motd = 1;
+ break;
case 'h':
default:
goto usage;
usage:
fprintf(stderr, "usage: %s"
" [-aDglnoprtvx] [-e program] [--address=sourceaddr] [--del]\n"
- "\t[--numeric-ids] [--port=portnumber] [--rsync-path=program]\n"
- "\t[--timeout=seconds] [--version] source ... directory\n",
+ "\t[--no-motd] [--numeric-ids] [--port=portnumber] "
+ "[--rsync-path=program]\n\t[--timeout=seconds] [--version] "
+ "source ... directory\n",
getprogname());
exit(1);
}
-.\" $OpenBSD: rsync.1,v 1.22 2020/11/24 16:54:44 claudio Exp $
+.\" $OpenBSD: rsync.1,v 1.23 2021/03/31 19:45:16 job Exp $
.\"
.\" Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: November 24 2020 $
+.Dd $Mdocdate: March 31 2021 $
.Dt OPENRSYNC 1
.Os
.Sh NAME
Do not actually modify the destination.
Mainly useful in combination with
.Fl v .
+.It Fl -no-motd
+Do not display the Message of the Day.
.It Fl -numeric-ids
Ignore user and group names, use numeric user and group IDs only.
Has no effect unless
-/* $Id: socket.c,v 1.28 2020/08/19 11:10:42 kn Exp $ */
+/* $Id: socket.c,v 1.29 2021/03/31 19:45:16 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
int major, minor;
if (strncmp(cp, "@RSYNCD: ", 9)) {
- LOG1("%s", cp);
+ if (sess->opts->no_motd == 0)
+ LOG1("%s", cp);
return 0;
}