]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bectl: push space-in-name check down into libbe
authorKyle Evans <kevans@FreeBSD.org>
Sun, 3 Apr 2022 02:04:31 +0000 (21:04 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Sun, 3 Apr 2022 02:04:31 +0000 (21:04 -0500)
commitdadb9c70938c4ae2c260f6af65752c67ac752284
treef90f4af2a19dfdb43161f0f81d802788f2b09a62
parent6833ac673d98275ef72a8873372714011c73eb15
bectl: push space-in-name check down into libbe

This check was previously in `create` only, not applying to renames.  It
should really be applied at the libbe level, so that we can avoid
writing about this restriction over and over again.

While we're here: `bectl rename` always succeeds, even when it doesn't.
Start returning the error.

Reported By: Christian McDonald <cmcdonald netgate com>
Reviewed by: rew, jwmaag_gmail.com (earlier version)
Differential Revision: https://reviews.freebsd.org/D34605
lib/libbe/be.c
sbin/bectl/bectl.c