Date: Thu, 9 Nov 2017 16:39:18 GMT From: allanjude@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r329244 - soc2017/kneitinger/libbe-head/lib/libbe Message-ID: <201711091639.vA9GdI7I022155@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711091639.vA9GdI7I022155>