svn commit: r467127 - head/sysutils/samesame/files

Kirill Ponomarev krion at FreeBSD.org
Thu Apr 12 06:34:31 UTC 2018


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");


More information about the svn-ports-head mailing list