projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Eliminated the unpacking of uid in the chkpwd
[citadel.git]
/
citadel
/
chkpwd.c
diff --git
a/citadel/chkpwd.c
b/citadel/chkpwd.c
index a07ad18ac74d857eead2d50ed75393ce3db05f95..076138cf8b0b8326e8106dd253f8ace896d38728 100644
(file)
--- a/
citadel/chkpwd.c
+++ b/
citadel/chkpwd.c
@@
-26,8
+26,7
@@
int main(void)
char buf[SIZ];
while (1) {
- read(0, buf, 16); /* uid */
- uid = atoi(buf);
+ read(0, &uid, sizeof(uid_t)); /* uid */
read(0, buf, 256); /* password */
if (validate_password(uid, buf)) {