summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-07-14 08:29:19 +0000
committermarkm <markm@FreeBSD.org>2001-07-14 08:29:19 +0000
commitdf9e832a1a6fe8cb17051a5fc2fb6c51622fc9f0 (patch)
treedbc1ec84a970d8769522c8f3cb3c56fd03614fef /contrib
parent7c0cabdf7fdacc033b9ae99ee0f885e3c2b3aed3 (diff)
downloadFreeBSD-src-df9e832a1a6fe8cb17051a5fc2fb6c51622fc9f0.zip
FreeBSD-src-df9e832a1a6fe8cb17051a5fc2fb6c51622fc9f0.tar.gz
Usse a better method to get a user's credentials, as uid's may be
legally duplicated. Requested by: ache
Diffstat (limited to 'contrib')
-rw-r--r--contrib/opie/opiepasswd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/opie/opiepasswd.c b/contrib/opie/opiepasswd.c
index 9cccb99..6cb2728 100644
--- a/contrib/opie/opiepasswd.c
+++ b/contrib/opie/opiepasswd.c
@@ -41,6 +41,8 @@ License Agreement applies to this software.
Modified heavily at NRL for OPIE 2.0.
Written at Bellcore for the S/Key Version 1 software distribution
(skeyinit.c).
+
+ $FreeBSD$
*/
#include "opie_cfg.h"
@@ -117,7 +119,7 @@ int main FUNCTION((argc, argv), int argc AND char *argv[])
memset(seed, 0, sizeof(seed));
- if (!(pp = getpwuid(getuid()))) {
+ if (!(pp = getpwnam(getlogin()))) {
fprintf(stderr, "Who are you?");
return 1;
}
OpenPOWER on IntegriCloud