Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 May 2017 19:55:32 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317805 - head/usr.sbin/autofs
Message-ID:  <201705041955.v44JtWXx036009@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Thu May  4 19:55:32 2017
New Revision: 317805
URL: https://svnweb.freebsd.org/changeset/base/317805

Log:
  Revert r317804; apparently I forgot the auto_master syntax.
  
  MFC after:	2 weeks

Modified:
  head/usr.sbin/autofs/common.c

Modified: head/usr.sbin/autofs/common.c
==============================================================================
--- head/usr.sbin/autofs/common.c	Thu May  4 19:41:19 2017	(r317804)
+++ head/usr.sbin/autofs/common.c	Thu May  4 19:55:32 2017	(r317805)
@@ -224,7 +224,6 @@ node_new_map(struct node *parent, char *
 		n->n_options = options;
 	else
 		n->n_options = strdup("");
-	assert(map != NULL);
 	n->n_map = map;
 	assert(config_file != NULL);
 	n->n_config_file = config_file;
@@ -1123,10 +1122,6 @@ parse_master_yyin(struct node *root, con
 		ret = yylex();
 		if (ret == 0 || ret == NEWLINE) {
 			if (mountpoint != NULL) {
-				if (map == NULL) {
-					log_errx(1, "missing map name "
-					    "at %s, line %d", master, lineno);
-				}
 				//log_debugx("adding map for %s", mountpoint);
 				node_new_map(root, mountpoint, options, map,
 				    master, lineno);



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