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
/
chkpw.c
diff --git
a/citadel/chkpw.c
b/citadel/chkpw.c
index ac3f779ca9e128a9b4829739015efcf39a003d48..48e6c132bc05a0bf811527d60f5158370d6089c8 100644
(file)
--- a/
citadel/chkpw.c
+++ b/
citadel/chkpw.c
@@
-26,8
+26,7
@@
static int validpw(uid_t uid, const char *pass)
{
char buf[256];
- snprintf(buf, sizeof buf, "%016d", uid);
- write(chkpwd_write_pipe[1], buf, 16);
+ write(chkpwd_write_pipe[1], &uid, sizeof(uid_t));
write(chkpwd_write_pipe[1], pass, 256);
read(chkpwd_read_pipe[0], buf, 4);