svn commit: r333653 - projects/pnfs-planb-server/usr.bin/pnfsdsfile
Rick Macklem
rmacklem at FreeBSD.org
Tue May 15 23:02:48 UTC 2018
Author: rmacklem
Date: Tue May 15 23:02:47 2018
New Revision: 333653
URL: https://svnweb.freebsd.org/changeset/base/333653
Log:
Add a line that sets sin_len in pnfsdsfile.c for the "-r" option,
just in case the previous address was INET6.
Modified:
projects/pnfs-planb-server/usr.bin/pnfsdsfile/pnfsdsfile.c
Modified: projects/pnfs-planb-server/usr.bin/pnfsdsfile/pnfsdsfile.c
==============================================================================
--- projects/pnfs-planb-server/usr.bin/pnfsdsfile/pnfsdsfile.c Tue May 15 22:26:09 2018 (r333652)
+++ projects/pnfs-planb-server/usr.bin/pnfsdsfile/pnfsdsfile.c Tue May 15 23:02:47 2018 (r333653)
@@ -213,6 +213,7 @@ main(int argc, char *argv[])
}
if (ad != NULL) {
sin->sin_family = AF_INET;
+ sin->sin_len = sizeof(*sin);
sin->sin_port = 0;
sin->sin_addr.s_addr = 0;
dosetxattr = 1;
More information about the svn-src-projects
mailing list