diff options
author | Peter Wemm <peter@FreeBSD.org> | 2002-09-02 05:57:14 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2002-09-02 05:57:14 +0000 |
commit | 8df8fc83d5a130e56bfd4451997af2cb1e451318 (patch) | |
tree | 32949f652e8da27bbd93bd53f3dc7bca126e7e9e /contrib/cvs/src/commit.c | |
parent | 0471b259a46f4cb5c9e64c1429500a12d7960ac1 (diff) |
Notes
Diffstat (limited to 'contrib/cvs/src/commit.c')
-rw-r--r-- | contrib/cvs/src/commit.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/contrib/cvs/src/commit.c b/contrib/cvs/src/commit.c index 226b09bd7a8e..a951f4926181 100644 --- a/contrib/cvs/src/commit.c +++ b/contrib/cvs/src/commit.c @@ -352,9 +352,10 @@ commit (argc, argv) struct passwd *pw; if ((pw = (struct passwd *) getpwnam (getcaller ())) == NULL) - error (1, 0, "you are unknown to this system"); + error (1, 0, "your apparent username (%s) is unknown to this system", + getcaller ()); if (pw->pw_uid == (uid_t) 0) - error (1, 0, "cannot commit files as 'root'"); + error (1, 0, "'root' is not allowed to commit files"); } #endif /* CVS_BADROOT */ @@ -496,11 +497,6 @@ commit (argc, argv) if (use_editor) do_editor (".", &saved_message, (char *)NULL, find_args.ulist); - /* Run the user-defined script to verify/check information in - *the log message - */ - do_verify (&saved_message, (char *)NULL); - /* We always send some sort of message, even if empty. */ /* FIXME: is that true? There seems to be some code in do_editor which can leave the message NULL. */ @@ -1576,7 +1572,7 @@ commit_dirleaveproc (callerdat, dir, err, update_dir, entries) this being a confusing feature! */ if (err == 0 && write_dirtag != NULL) { - char *repos = Name_Repository (dir, update_dir); + char *repos = Name_Repository (NULL, update_dir); WriteTag (NULL, write_dirtag, NULL, write_dirnonbranch, update_dir, repos); free (repos); @@ -1810,7 +1806,7 @@ unlockrcs (rcs) { int retcode; - if ((retcode = RCS_unlock (rcs, NULL, 0)) != 0) + if ((retcode = RCS_unlock (rcs, NULL, 1)) != 0) error (retcode == -1 ? 1 : 0, retcode == -1 ? errno : 0, "could not unlock %s", rcs->path); else |