search for: glob_tilde

Displaying 7 results from an estimated 7 matches for "glob_tilde".

2024 Jul 01
1
[PATCH RESEND 1/2] Permit %L and %l percent escapes in Include
..."~/" _PATH_SSH_USER_DIR : SSHDIR, arg); } else - arg2 = xstrdup(arg); + arg_pre = xstrdup(arg); + arg2 = percent_expand(arg_pre, + "l", thishost, "L", shorthost, (char *) NULL); + free(arg_pre); memset(&gl, 0, sizeof(gl)); r = glob(arg2, GLOB_TILDE, NULL, &gl); if (r == GLOB_NOMATCH) { -- 2.45.2
2001 May 21
1
2.9p1 patches
...'/' #define STAR '*' -#define TILDE '~' +#define TILDE_CHAR '~' #define UNDERSCORE '_' #define LBRACE '{' #define RBRACE '}' @@ -354,7 +354,7 @@ const Char *p; Char *b, *eb; - if (*pattern != TILDE || !(pglob->gl_flags & GLOB_TILDE)) + if (*pattern != TILDE_CHAR || !(pglob->gl_flags & GLOB_TILDE)) return pattern; /* Copy up to the end of the string or / */ --- configure.in.orig Fri May 18 20:50:43 2001 +++ configure.in Fri May 18 23:45:09 2001 @@ -9,6 +9,7 @@ # Checks for programs. AC_PROG_CPP +AC_SYS_LARGEF...
2023 Nov 13
2
[PATCH v2] Permit %L and %l percent escapes in Include
..."~/" _PATH_SSH_USER_DIR : SSHDIR, arg); } else - arg2 = xstrdup(arg); + arg_pre = xstrdup(arg); + arg2 = percent_expand(arg_pre, + "l", thishost, "L", shorthost, (char *) NULL); + free(arg_pre); memset(&gl, 0, sizeof(gl)); r = glob(arg2, GLOB_TILDE, NULL, &gl); if (r == GLOB_NOMATCH) { base-commit: 64e0600f23c6dec36c3875392ac95b8a9100c2d6 -- 2.42.1
2024 Jul 01
1
[PATCH RESEND 1/2] Permit %L and %l percent escapes in Include
...DIR : SSHDIR, arg); > } else >- arg2 = xstrdup(arg); >+ arg_pre = xstrdup(arg); >+ arg2 = percent_expand(arg_pre, >+ "l", thishost, "L", shorthost, (char *) NULL); >+ free(arg_pre); > memset(&gl, 0, sizeof(gl)); > r = glob(arg2, GLOB_TILDE, NULL, &gl); > if (r == GLOB_NOMATCH) { >-- >2.45.2 Would you be able to document that "thisHost" may be ambiguous, depending on the DNS and host resolver configuration? gethostname() is not entirely predictable if the localhost has multiple values.
2023 Nov 14
1
[PATCH v3 1/2] Permit %L and %l percent escapes in ssh Include
..."~/" _PATH_SSH_USER_DIR : SSHDIR, arg); } else - arg2 = xstrdup(arg); + arg_pre = xstrdup(arg); + arg2 = percent_expand(arg_pre, + "l", thishost, "L", shorthost, (char *) NULL); + free(arg_pre); memset(&gl, 0, sizeof(gl)); r = glob(arg2, GLOB_TILDE, NULL, &gl); if (r == GLOB_NOMATCH) { base-commit: 64e0600f23c6dec36c3875392ac95b8a9100c2d6 -- 2.42.1
2023 Dec 20
2
[PATCH RESEND 0/2] Permit %L and %l percent escapes in Include
Using these escapes, the include directive can be crafted to include differing, host-specific configuration. Ronan Pigott (2): Permit %L and %l percent escapes in ssh Include Permit %L and %l percent escapes in sshd Include readconf.c | 16 +++++++++++++--- servconf.c | 17 ++++++++++++++--- 2 files changed, 27 insertions(+), 6 deletions(-) base-commit:
2024 Jul 01
2
[PATCH RESEND 0/2] Permit %L and %L percent escapes in Include
Using these escapes, the include directive can be crafted to include differing, host-specific configuration. Ronan Pigott (2): Permit %L and %l percent escapes in Include Permit %L and %l percent escapes in server Include readconf.c | 16 +++++++++++++--- servconf.c | 21 ++++++++++++++++----- 2 files changed, 29 insertions(+), 8 deletions(-) base-commit: