From owner-svn-ports-head@freebsd.org Thu Apr 12 06:34:31 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 418CBF98586; Thu, 12 Apr 2018 06:34:31 +0000 (UTC) (envelope-from krion@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E8F75806E7; Thu, 12 Apr 2018 06:34:30 +0000 (UTC) (envelope-from krion@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E3CE9275E6; Thu, 12 Apr 2018 06:34:30 +0000 (UTC) (envelope-from krion@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3C6YUcT012118; Thu, 12 Apr 2018 06:34:30 GMT (envelope-from krion@FreeBSD.org) Received: (from krion@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3C6YUhh012117; Thu, 12 Apr 2018 06:34:30 GMT (envelope-from krion@FreeBSD.org) Message-Id: <201804120634.w3C6YUhh012117@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: krion set sender to krion@FreeBSD.org using -f From: Kirill Ponomarev Date: Thu, 12 Apr 2018 06:34:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467127 - head/sysutils/samesame/files X-SVN-Group: ports-head X-SVN-Commit-Author: krion X-SVN-Commit-Paths: head/sysutils/samesame/files X-SVN-Commit-Revision: 467127 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2018 06:34:31 -0000 Author: krion Date: Thu Apr 12 06:34:30 2018 New Revision: 467127 URL: https://svnweb.freebsd.org/changeset/ports/467127 Log: Fix build on CURRENT PR: 225670 Submitted by: maintainer Added: head/sysutils/samesame/files/patch-src_samechown.cpp (contents, props changed) Added: head/sysutils/samesame/files/patch-src_samechown.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/samesame/files/patch-src_samechown.cpp Thu Apr 12 06:34:30 2018 (r467127) @@ -0,0 +1,20 @@ +--- src/samechown.cpp.orig 2018-04-12 08:29:19.856800000 +0200 ++++ src/samechown.cpp 2018-04-12 08:30:19.550031000 +0200 +@@ -47,7 +47,7 @@ + value = strtoul(name, &end, 10); + if (errno) + err(1, "%s", name); +- if (*end = '\0') ++ if (*end == '\0') + errx(1, "%s: illegal %s name", name, type); + return value; + } +@@ -76,7 +76,7 @@ + } + { + char *s = argv[argi]; +- if (argv[argi] != '\0') // Argument was not: ...:gid ++ if (*argv[argi] != '\0') // Argument was not: ...:gid + { + struct passwd *pw = getpwnam(argv[argi]); + owner = pw != NULL ? pw->pw_uid : id(s, "user");