summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-06-14 12:35:10 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-06-14 12:35:10 +0000
commit52ec3561a7161a0e2133f82d37fef13d1073923d (patch)
tree9920d7d62abb084cda1742b92f811fa3e0795952 /usr.bin/cvs
parent6e1bb74fb6ee03f44f695f4d20b423f65e9ac0a5 (diff)
zap myuid variable, it is not used for anything usefull.
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/repository.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/cvs/repository.c b/usr.bin/cvs/repository.c
index 24951cde33a..30109faa4b3 100644
--- a/usr.bin/cvs/repository.c
+++ b/usr.bin/cvs/repository.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: repository.c,v 1.3 2006/06/02 19:10:24 david Exp $ */
+/* $OpenBSD: repository.c,v 1.4 2006/06/14 12:35:09 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -45,7 +45,6 @@ void
cvs_repository_lock(const char *repo)
{
int l, i;
- uid_t myuid;
struct stat st;
char fpath[MAXPATHLEN];
struct passwd *pw;
@@ -56,7 +55,6 @@ cvs_repository_lock(const char *repo)
if (l == -1 || l >= (int)sizeof(fpath))
fatal("cvs_repository_lock: overflow");
- myuid = getuid();
for (i = 0; i < CVS_LOCK_TRIES; i++) {
if (cvs_quit)
fatal("received signal %d", sig_received);