Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2018 06:34:30 +0000 (UTC)
From:      Kirill Ponomarev <krion@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r467127 - head/sysutils/samesame/files
Message-ID:  <201804120634.w3C6YUhh012117@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804120634.w3C6YUhh012117>