Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added a "socket options" option to rsyncd.conf. This option will
[rsync/rsync.git]
/
authenticate.c
diff --git
a/authenticate.c
b/authenticate.c
index
351c8a0
..
6a389db
100644
(file)
--- a/
authenticate.c
+++ b/
authenticate.c
@@
-107,12
+107,7
@@
static int get_secret(int module, char *user, char *secret, int len)
close(fd);
if (!found) return 0;
- if (strlen(pass) > len-1) {
- memset(line, 0, sizeof(line));
- return 0;
- }
-
- strcpy(secret, pass);
+ strlcpy(secret, pass, len);
return 1;
}