From owner-freebsd-toolchain@freebsd.org Sun Jul 12 14:13:13 2015 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3C769999C1 for ; Sun, 12 Jul 2015 14:13:12 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id DAB741F50 for ; Sun, 12 Jul 2015 14:13:12 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id D75CAE869; Sun, 12 Jul 2015 14:13:12 +0000 (UTC) Date: Sun, 12 Jul 2015 14:13:12 +0000 To: freebsd-toolchain@freebsd.org From: "araujo (Marcelo Araujo)" Reply-to: D2690+334+b4a053d3a7c96652@FreeBSD.org Subject: [Differential] [Updated, 56 lines] D2690: In ypbind, eliminate error: dereferencing type-punned pointer will break strict-aliasing rules Message-ID: X-Priority: 3 Thread-Topic: D2690: In ypbind, eliminate error: dereferencing type-punned pointer will break strict-aliasing rules X-Herald-Rules: <28> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: Y2M3ODgwNzhlNGU0M2Q5NjMyZTYwOGZmMTc0IFWidfg= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_eda0217426470ce3cfe10261635f19c9" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2015 14:13:13 -0000 --b1_eda0217426470ce3cfe10261635f19c9 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit araujo updated this revision to Diff 6874. araujo added a comment. This revision now requires review to proceed. Address dim@ comment related with the function: broadcast_result(). Also I setup my machine following this page: https://www.freebsd.org/doc/handbook/network-nis.html Seems everything works fine. Result: root@srcCODE:~ # ypcat passwd smmsp:*:25:25:Sendmail Submission User:/var/spool/clientmqueue:/usr/sbin/nologin hast:*:845:845:HAST unprivileged user:/var/empty:/usr/sbin/nologin bin:*:3:7:Binaries Commands and Source:/:/usr/sbin/nologin tty:*:4:65533:Tty Sandbox:/:/usr/sbin/nologin kmem:*:5:65533:KMem Sandbox:/:/usr/sbin/nologin sshd:*:22:22:Secure Shell Daemon:/var/empty:/usr/sbin/nologin proxy:*:62:62:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin unbound:*:59:59:Unbound DNS Resolver:/var/unbound:/usr/sbin/nologin _pflogd:*:64:64:pflogd privsep user:/var/empty:/usr/sbin/nologin nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin root:*:0:0:Charlie &:/root:/bin/csh toor:*:0:0:Bourne-again Superuser:/root: daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5:System &:/:/usr/sbin/nologin man:*:9:9:Mister Man Pages:/usr/share/man:/usr/sbin/nologin games:*:7:13:Games pseudo-user:/usr/games:/usr/sbin/nologin news:*:8:8:News Subsystem:/:/usr/sbin/nologin bind:*:53:53:Bind Sandbox:/:/usr/sbin/nologin uucp:*:66:66:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin mailnull:*:26:26:Sendmail Default User:/var/spool/mqueue:/usr/sbin/nologin _dhcp:*:65:65:dhcp programs:/var/empty:/usr/sbin/nologin pop:*:68:6:Post Office Owner:/nonexistent:/usr/sbin/nologin auditdistd:*:78:77:Auditdistd unprivileged user:/var/empty:/usr/sbin/nologin git_daemon:*:964:964:git daemon:/nonexistent:/usr/sbin/nologin REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D2690?vs=6699&id=6874 BRANCH /head REVISION DETAIL https://reviews.freebsd.org/D2690 AFFECTED FILES usr.sbin/ypbind/ypbind.c EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: araujo, bapt, emaste, rodrigc, dim Cc: imp, freebsd-toolchain-list --b1_eda0217426470ce3cfe10261635f19c9 Content-Type: text/x-patch; charset=utf-8; name="D2690.6874.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D2690.6874.patch" ZGlmZiAtLWdpdCBhL3Vzci5zYmluL3lwYmluZC95cGJpbmQuYyBiL3Vzci5zYmluL3lwYmluZC95 cGJpbmQuYwotLS0gYS91c3Iuc2Jpbi95cGJpbmQveXBiaW5kLmMKKysrIGIvdXNyLnNiaW4veXBi aW5kL3lwYmluZC5jCkBAIC0xMDYsMTYgKzEwNiwxNiBAQAogdm9pZAl5cF9yZXN0cmljdGVkX21v ZGUoY2hhciAqKTsKIGludAl2ZXJpZnkoc3RydWN0IGluX2FkZHIpOwogCi1jaGFyICpkb21haW5f bmFtZTsKLXN0cnVjdCBfZG9tX2JpbmRpbmcgKnlwYmluZGxpc3Q7CitzdGF0aWMgY2hhciAqZG9t YWluX25hbWU7CitzdGF0aWMgc3RydWN0IF9kb21fYmluZGluZyAqeXBiaW5kbGlzdDsKIHN0YXRp YyBzdHJ1Y3QgX2RvbV9iaW5kaW5nICpicm9hZF9kb21haW47CiAKICNkZWZpbmUgWVBTRVRfTk8J MAogI2RlZmluZSBZUFNFVF9MT0NBTAkxCiAjZGVmaW5lIFlQU0VUX0FMTAkyCi1pbnQgeXBzZXRt b2RlID0gWVBTRVRfTk87Ci1pbnQgeXBzZWN1cmVtb2RlID0gMDsKLWludCBwcGlkOworc3Rh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ZiAod3JpdGV2KHlwZGItPmRv bV9sb2NrZmQsIGlvdiwgMikgIT0gaW92WzBdLmlvdl9sZW4gKyBpb3ZbMV0uaW92X2xlbikgewog CQlzeXNsb2coTE9HX1dBUk5JTkcsICJ3cml0ZTogJW0iKTsKCg== --b1_eda0217426470ce3cfe10261635f19c9-- From owner-freebsd-toolchain@freebsd.org Sun Jul 12 14:16:14 2015 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03B929999F3 for ; Sun, 12 Jul 2015 14:16:14 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id DF1911FAC for ; Sun, 12 Jul 2015 14:16:13 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id DC628E95A; Sun, 12 Jul 2015 14:16:13 +0000 (UTC) Date: Sun, 12 Jul 2015 14:16:13 +0000 To: freebsd-toolchain@freebsd.org From: "araujo (Marcelo Araujo)" Reply-to: D2690+334+b4a053d3a7c96652@FreeBSD.org Subject: [Differential] [Updated, 57 lines] D2690: In ypbind, eliminate error: dereferencing type-punned pointer will break strict-aliasing rules Message-ID: X-Priority: 3 Thread-Topic: D2690: In ypbind, eliminate error: dereferencing type-punned pointer will break strict-aliasing rules X-Herald-Rules: <28> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: Y2M3ODgwNzhlNGU0M2Q5NjMyZTYwOGZmMTc0IFWidq0= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_d80aa53758a941b24d4b6a807950ed8d" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2015 14:16:14 -0000 --b1_d80aa53758a941b24d4b6a807950ed8d Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit araujo updated this revision to Diff 6875. araujo added a comment. Minor change to respect style(9). REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D2690?vs=6874&id=6875 BRANCH /head REVISION DETAIL https://reviews.freebsd.org/D2690 AFFECTED FILES usr.sbin/ypbind/ypbind.c EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: araujo, bapt, emaste, rodrigc, dim Cc: imp, freebsd-toolchain-list --b1_d80aa53758a941b24d4b6a807950ed8d Content-Type: text/x-patch; charset=utf-8; name="D2690.6875.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D2690.6875.patch" ZGlmZiAtLWdpdCBhL3Vzci5zYmluL3lwYmluZC95cGJpbmQuYyBiL3Vzci5zYmluL3lwYmluZC95 cGJpbmQuYwotLS0gYS91c3Iuc2Jpbi95cGJpbmQveXBiaW5kLmMKKysrIGIvdXNyLnNiaW4veXBi aW5kL3lwYmluZC5jCkBAIC0xMDYsMTYgKzEwNiwxNiBAQAogdm9pZAl5cF9yZXN0cmljdGVkX21v ZGUoY2hhciAqKTsKIGludAl2ZXJpZnkoc3RydWN0IGluX2FkZHIpOwogCi1jaGFyICpkb21haW5f bmFtZTsKLXN0cnVjdCBfZG9tX2JpbmRpbmcgKnlwYmluZGxpc3Q7CitzdGF0aWMgY2hhciAqZG9t YWluX25hbWU7CitzdGF0aWMgc3RydWN0IF9kb21fYmluZGluZyAqeXBiaW5kbGlzd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mZvLnlwYmluZF9iaW5kaW5nX2FkZHIsCisJICAgICZyYWRk cnAtPnNpbl9hZGRyLnNfYWRkciwgc2l6ZW9mKHVfaW50MzJfdCkpOworCW1lbWNweSgmeWJyLnlw YmluZF9yZXNwX3UueXBiaW5kX2JpbmRpbmZvLnlwYmluZF9iaW5kaW5nX3BvcnQsCisJICAgICZy YWRkcnAtPnNpbl9wb3J0LCBzaXplb2YodV9zaG9ydCkpOwogCiAJaWYgKHdyaXRldih5cGRiLT5k b21fbG9ja2ZkLCBpb3YsIDIpICE9IGlvdlswXS5pb3ZfbGVuICsgaW92WzFdLmlvdl9sZW4pIHsK IAkJc3lzbG9nKExPR19XQVJOSU5HLCAid3JpdGU6ICVtIik7Cgo= --b1_d80aa53758a941b24d4b6a807950ed8d-- From owner-freebsd-toolchain@freebsd.org Tue Jul 14 17:30:04 2015 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72DF099CB24 for ; Tue, 14 Jul 2015 17:30:04 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 5C21B1DB2 for ; Tue, 14 Jul 2015 17:30:04 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 5715A1F9C; Tue, 14 Jul 2015 17:30:04 +0000 (UTC) Date: Tue, 14 Jul 2015 17:30:04 +0000 To: freebsd-toolchain@freebsd.org From: "rodrigc (Craig Rodrigues)" Reply-to: D2690+334+b4a053d3a7c96652@FreeBSD.org Subject: [Differential] [Accepted] D2690: In ypbind, eliminate error: dereferencing type-punned pointer will break strict-aliasing rules Message-ID: <96a514046715c98d419e7a38c79f448c@localhost.localdomain> X-Priority: 3 Thread-Topic: D2690: In ypbind, eliminate error: dereferencing type-punned pointer will break strict-aliasing rules X-Herald-Rules: <28> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: Y2M3ODgwNzhlNGU0M2Q5NjMyZTYwOGZmMTc0IFWlRxw= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 17:30:04 -0000 rodrigc accepted this revision. This revision has a positive review. REPOSITORY rS FreeBSD src repository BRANCH /head REVISION DETAIL https://reviews.freebsd.org/D2690 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: araujo, bapt, emaste, dim, rodrigc Cc: imp, freebsd-toolchain-list From owner-freebsd-toolchain@freebsd.org Thu Jul 16 02:34:43 2015 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 330F49A3B51 for ; Thu, 16 Jul 2015 02:34:43 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 1AAAC18E0 for ; Thu, 16 Jul 2015 02:34:43 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 14814E854; Thu, 16 Jul 2015 02:34:43 +0000 (UTC) Date: Thu, 16 Jul 2015 02:34:43 +0000 To: freebsd-toolchain@freebsd.org From: "araujo (Marcelo Araujo)" Reply-to: D2690+334+b4a053d3a7c96652@FreeBSD.org Subject: [Differential] [Closed] D2690: In ypbind, eliminate error: dereferencing type-punned pointer will break strict-aliasing rules Message-ID: <0f41e70afccfbeb6c8b0d2f2b1dde6ac@localhost.localdomain> X-Priority: 3 Thread-Topic: D2690: In ypbind, eliminate error: dereferencing type-punned pointer will break strict-aliasing rules X-Herald-Rules: <28> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: Y2M3ODgwNzhlNGU0M2Q5NjMyZTYwOGZmMTc0IFWnGEM= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_0f41e70afccfbeb6c8b0d2f2b1dde6ac" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 02:34:43 -0000 --b1_0f41e70afccfbeb6c8b0d2f2b1dde6ac Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS285618: Fix a warning spotted by gcc4.9: dereferencing type-punned pointer will break (authored by araujo). REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D2690?vs=6875&id=6989 REVISION DETAIL https://reviews.freebsd.org/D2690 AFFECTED FILES head/usr.sbin/ypbind/ypbind.c EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: araujo, bapt, emaste, dim, rodrigc Cc: imp, freebsd-toolchain-list --b1_0f41e70afccfbeb6c8b0d2f2b1dde6ac Content-Type: text/x-patch; charset=utf-8; name="D2690.6989.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D2690.6989.patch" ZGlmZiAtLWdpdCBhL2hlYWQvdXNyLnNiaW4veXBiaW5kL3lwYmluZC5jIGIvaGVhZC91c3Iuc2Jp bi95cGJpbmQveXBiaW5kLmMKLS0tIGEvaGVhZC91c3Iuc2Jpbi95cGJpbmQveXBiaW5kLmMKKysr IGIvaGVhZC91c3Iuc2Jpbi95cGJpbmQveXBiaW5kLmMKQEAgLTEwNiwxNiArMTA2LDE2IEBACiB2 b2lkCXlwX3Jlc3RyaWN0ZWRfbW9kZShjaGFyICopOwogaW50CXZlcmlmeShzdHJ1Y3QgaW5fYWRk cik7CiAKLWNoYXIgKmRvbWFpbl9uYW1lOwotc3RydWN0IF9kb21fYmluZGluZyAqeXBiaW5kbGlz dDsKK3N0YXRpYyBjaGFyICpkb21haW5fbmFtZTsKK3N0YXRpYyBzdHJ1Y3QgX2RvbV9iaW5kaW5n ICp5cGJpbmRsaXN0Owogc3RhdGljIHN0cnVjdCBfZG9tX2JpbmRpbmcgKmJyb2FkX2RvbWFpbjsK IAogI2RlZmluZSBZUFNFVF9OTwkwCiAjZGVmaW5lIFlQU0VUX0xPQ0FMCTEKICNkZWZpbmUgWVBT RVRfQUxMCTIKLWludCB5cHNldG1vZGUgPSBZUFNFVF9OTzsKLWludCB5cHNlY3VyZW1vZGUgPSAw OwotaW50IHBwaWQ7CitzdGF0aWMgaW50IHlwc2V0bW9kZSA9IFlQU0VUX05POworc3RhdGljIGlu dCB5cHNlY3VyZW1vZGUgPSAwOworc3RhdGljIGludCBwcGlkOwogCiAjZGVmaW5lIE5PVF9SRVNQ T05ESU5HX0hZU1RFUkVTSVMgMTAKIHN0YXRpYyBpbnQgbm90X3Jlc3BvbmRpbmdfY291bnQgPSAw OwpAQCAtMTI2LDkgKzEyNiw5IEBACiAg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