summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/cvs.c10
-rw-r--r--usr.bin/cvs/rcs.c9
2 files changed, 6 insertions, 13 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c
index 7f612698f61..293c2c35507 100644
--- a/usr.bin/cvs/cvs.c
+++ b/usr.bin/cvs/cvs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cvs.c,v 1.88 2005/12/10 20:27:45 joris Exp $ */
+/* $OpenBSD: cvs.c,v 1.89 2005/12/19 17:43:01 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -129,12 +129,8 @@ main(int argc, char **argv)
cvs_readonly = 1;
if ((cvs_homedir = getenv("HOME")) == NULL) {
- pw = getpwuid(getuid());
- if (pw == NULL) {
- cvs_log(LP_NOTICE,
- "failed to get user's password entry");
- exit(CVS_EX_DATA);
- }
+ if ((pw = getpwuid(getuid())) == NULL)
+ fatal("getpwuid failed");
cvs_homedir = pw->pw_dir;
}
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index cd56920ae7d..05bd3e45b3e 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.111 2005/12/12 17:47:03 joris Exp $ */
+/* $OpenBSD: rcs.c,v 1.112 2005/12/19 17:43:01 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1361,11 +1361,8 @@ rcs_rev_add(RCSFILE *rf, RCSNUM *rev, const char *msg, time_t date,
}
}
- if ((pw = getpwuid(getuid())) == NULL) {
- rcs_errno = RCS_ERR_ERRNO;
- rcsnum_free(old);
- return (-1);
- }
+ if ((pw = getpwuid(getuid())) == NULL)
+ fatal("getpwuid failed");
rdp = (struct rcs_delta *)xmalloc(sizeof(*rdp));
memset(rdp, 0, sizeof(*rdp));