summaryrefslogtreecommitdiff
path: root/authenticate.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-05-15 10:34:07 +0000
committerAndrew Tridgell <tridge@samba.org>1998-05-15 10:34:07 +0000
commit1a016bfdec2823c6d4e78a3dcc253cdfc30a10af (patch)
tree29309074e9289d6367c22634848c86bb819f0993 /authenticate.c
parente42c9458c2f1e3a78d6d45e99741d6edb38fc0cc (diff)
downloadrsync-1a016bfdec2823c6d4e78a3dcc253cdfc30a10af.tar.gz
- changed the log messages to show the requested path
- some more paranoid buffer size checks - separate open syslog call - handle systems without LOG_NDELAY
Diffstat (limited to 'authenticate.c')
-rw-r--r--authenticate.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/authenticate.c b/authenticate.c
index 351c8a0a..6a389dbb 100644
--- 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;
}