socsvn commit: r329244 - soc2017/kneitinger/libbe-head/lib/libbe

allanjude at FreeBSD.org allanjude at FreeBSD.org
Thu Nov 9 16:39:19 UTC 2017


Author: allanjude
Date: Thu Nov  9 16:39:17 2017
New Revision: 329244
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=329244

Log:
  Canonicalize the dataset name before checking if it exists

Modified:
  soc2017/kneitinger/libbe-head/lib/libbe/be.c

Modified: soc2017/kneitinger/libbe-head/lib/libbe/be.c
==============================================================================
--- soc2017/kneitinger/libbe-head/lib/libbe/be.c	Thu Nov  9 16:17:46 2017	(r329243)
+++ soc2017/kneitinger/libbe-head/lib/libbe/be.c	Thu Nov  9 16:39:17 2017	(r329244)
@@ -193,12 +193,12 @@
 	time_t rawtime;
 	int len, err;
 
-	if (!be_exists(lbh, source)) {
+	be_root_concat(lbh, source, buf);
+
+	if (!be_exists(lbh, buf)) {
 		return (BE_ERR_NOENT);
 	}
 
-	be_root_concat(lbh, source, buf);
-
 	if (snap_name != NULL) {
 		strcat(buf, "@");
 		strcat(buf, snap_name);


More information about the svn-soc-all mailing list