Displaying 2 results from an estimated 2 matches for "lp_secrets_fil".
Did you mean:
lp_secrets_file
2007 Aug 24
0
rsync patch to add Apple keychain support
...keychain as fallback:
-----------------------------------------------------------------
/* Return the secret for a user from the secret file, null terminated.
* Maximum length is len (not counting the null). */
static int get_secret(int module, char *user, char *secret, int len)
{
char *fname = lp_secrets_file(module);
STRUCT_STAT st;
int fd, ok = 1;
char ch, *p;
if (!fname || !*fname)
return get_secret_from_keychain(module, user, secret, len);
----------------------------------------------------------------
Greetings,
Dirk
--
A: No.
Q: Should I include e-mail quotations after my reply?
2008 May 21
0
Rsync feature request
...n the secret for a user from the secret file, null terminated.
* Maximum length is len (not counting the null). */
-static int get_secret(int module, char *user, char *secret, int len)
+static int get_secret(int module, char *user, char *secret, int len,
int skip_how_many)
{
char *fname = lp_secrets_file(module);
STRUCT_STAT st;
@@ -125,8 +125,13 @@
else if (p) {
if (*p == ch)
p++;
- else if (!*p && ch == ':')
- break;
+ else if (!*p && ch == ':') {
+ if (skip_how_many == 0)
+...