From 16a07b3e85b2e8994350583b3a74b79e2680f4f5 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 19 May 2004 17:43:09 +0000 Subject: Bug fixes for kvm prepare jail --- srcx/util.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'srcx/util.c') diff --git a/srcx/util.c b/srcx/util.c index c406163..5fcad1c 100644 --- a/srcx/util.c +++ b/srcx/util.c @@ -205,8 +205,6 @@ int kvm_prepare_jail(struct xprison* xp) strcpy(path, xp->pr_path); strcat(path, _PATH_DEV); - warnx("the %s directory doesn't exist. creating...", path); - if(mkdir(path, 0) == -1 || chmod(path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) == -1) { @@ -223,7 +221,7 @@ int kvm_prepare_jail(struct xprison* xp) strcpy(path, xp->pr_path); strcat(path, _PATH_DEVNULL); - warnx("the %s device doesn't exist in jail. creating...", path); + warnx("creating %s device in jail.", path); if(mknod(path, mode, dev) == -1) { -- cgit v1.2.3