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:
parent
bb18c98198
commit
edbae5e0b2
2
lib/fs.c
2
lib/fs.c
|
|
@ -121,7 +121,7 @@ int make_path(const char *path, mode_t mode)
|
||||||
|
|
||||||
if (mkdir(dir, mode) != 0) {
|
if (mkdir(dir, mode) != 0) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"mkdir failed for %s: %s",
|
"mkdir failed for %s: %s\n",
|
||||||
dir, strerror(errno));
|
dir, strerror(errno));
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue