summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src/create_adm.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-03-10 13:40:57 +0000
committerpeter <peter@FreeBSD.org>1998-03-10 13:40:57 +0000
commit0c111e2b51cac7eead56494b30c5977e4ec9a8ea (patch)
treef60b0014663435c30f2efea2b10ca4f8ecc0208c /contrib/cvs/src/create_adm.c
parentc3a8ee0e80a59793349940056dfd14746ebd4905 (diff)
downloadFreeBSD-src-0c111e2b51cac7eead56494b30c5977e4ec9a8ea.zip
FreeBSD-src-0c111e2b51cac7eead56494b30c5977e4ec9a8ea.tar.gz
Import cvs-1.9.26 onto vendor branch
Diffstat (limited to 'contrib/cvs/src/create_adm.c')
-rw-r--r--contrib/cvs/src/create_adm.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/contrib/cvs/src/create_adm.c b/contrib/cvs/src/create_adm.c
index c1772b2..c51785c 100644
--- a/contrib/cvs/src/create_adm.c
+++ b/contrib/cvs/src/create_adm.c
@@ -59,6 +59,12 @@ Create_Admin (dir, update_dir, repository, tag, date, nonbranch, warn)
if (CVS_MKDIR (tmp, 0777) < 0)
{
+ /* We want to print out the entire update_dir, since a lot of
+ our code calls this function with dir == "." or dir ==
+ NULL. I hope that gives enough information in cases like
+ absolute pathnames; printing out xgetwd or something would
+ be way too verbose in the common cases. */
+
if (warn)
{
/* The reason that this is a warning, rather than silently
@@ -66,11 +72,14 @@ Create_Admin (dir, update_dir, repository, tag, date, nonbranch, warn)
CVS's behavior to vary subtly based on factors (like directory
permissions) which are not made clear to the user. With
the warning at least we let them know what is going on. */
- error (0, errno, "warning: cannot make directory %s", tmp);
+ error (0, errno, "warning: cannot make directory %s in %s",
+ CVSADM, update_dir);
+ free (tmp);
return 1;
}
else
- error (1, errno, "cannot make directory %s", tmp);
+ error (1, errno, "cannot make directory %s in %s",
+ CVSADM, update_dir);
}
/* record the current cvs root for later use */
OpenPOWER on IntegriCloud