ip vrf: Fix run-on error message on mkdir failure

Andy reported a missing newline if a non-root user attempts to run
'ip vrf exec':

$ ./ip/ip vrf exec default /bin/echo asdf
mkdir failed for /var/run/cgroup2: Permission deniedFailed to setup vrf cgroup2 directory

Reported-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
This commit is contained in:
David Ahern 2017-01-05 16:22:21 -08:00 committed by Stephen Hemminger
parent bb18c98198
commit edbae5e0b2

View File

@ -121,7 +121,7 @@ int make_path(const char *path, mode_t mode)
if (mkdir(dir, mode) != 0) {
fprintf(stderr,
"mkdir failed for %s: %s",
"mkdir failed for %s: %s\n",
dir, strerror(errno));
goto out;
}