search for: skip_how_many

Displaying 1 result from an estimated 1 matches for "skip_how_many".

2008 May 21
0
Rsync feature request
...-0400 @@ -76,7 +76,7 @@ /* 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) +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)...