summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-12-19 17:43:02 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-12-19 17:43:02 +0000
commit03f76ed10563fc55c1f4f5da5e6fb37de80ef249 (patch)
treeaef2d6ba8c8255335adf3ada5b56b3fa41ab833f /usr.bin/cvs/rcs.c
parentd4d0ab9cb01a98494afc8e6f8ffa66b6dc7914a9 (diff)
use fatal() if getpwuid() fails; OK joris@.
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c9
1 files changed, 3 insertions, 6 deletions
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));