search for: maxarg

Displaying 9 results from an estimated 9 matches for "maxarg".

Did you mean: maxargs
2019 Jan 25
0
[klibc:update-dash] builtin: Fix handling of trailing IFS white spaces
...(exparg.list, flag); @@ -1016,15 +1017,18 @@ recordregion(int start, int end, int nulonly) * Break the argument string into pieces based upon IFS and add the * strings to the argument list. The regions of the string to be * searched for IFS characters have been stored by recordregion. + * If maxargs is non-negative, at most maxargs arguments will be created, by + * joining together the last arguments. */ void -ifsbreakup(char *string, struct arglist *arglist) +ifsbreakup(char *string, int maxargs, struct arglist *arglist) { struct ifsregion *ifsp; struct strlist *sp; char *start;...
2020 Mar 28
0
[klibc:update-dash] dash: builtin: Fix handling of trailing IFS white spaces
...(exparg.list, flag); @@ -1016,15 +1017,18 @@ recordregion(int start, int end, int nulonly) * Break the argument string into pieces based upon IFS and add the * strings to the argument list. The regions of the string to be * searched for IFS characters have been stored by recordregion. + * If maxargs is non-negative, at most maxargs arguments will be created, by + * joining together the last arguments. */ void -ifsbreakup(char *string, struct arglist *arglist) +ifsbreakup(char *string, int maxargs, struct arglist *arglist) { struct ifsregion *ifsp; struct strlist *sp; char *start;...
2005 Jul 29
2
segment fault with 2.6.6 or CVS
...or by xinetd) Here is the gdb log gdb ... set follow-fork-mode child run --daemon --no-detach Program received signal SIGSEGV, Segmentation fault. [Switching to process 32521] 0x08056577 in glob_expand (base1=0x5 <Address 0x5 out of bounds>, argv_ptr=0xbfa4a20c, argc_ptr=0xbfa4a210, maxargs_ptr=0xbfa4a214) at util.c:548 548 if (!(argv[argc++] = strdup(globbuf.gl_pathv[i]))) (gdb) where #0 0x08056577 in glob_expand (base1=0x5 <Address 0x5 out of bounds>, argv_ptr=0xbfa4a20c, argc_ptr=0xbfa4a210, maxargs_ptr=0xbfa4a214) at util.c:548 #1...
2006 Apr 01
0
sftp tab completion patch (First release - NOT FOR INCLUDING YET)
...}, + { "?", I_HELP, NOARGS }, + { NULL, -1, -1} }; int interactive_loop(int fd_in, int fd_out, char *file1, char *file2); @@ -1231,13 +1241,194 @@ return ("sftp> "); } +/* + * Before Asking to be included: + * XXX Support Quoting in file completion + * XXX Fix MAXARG to be more dynamic + * XXX Better column display of multi-matches + * XXX Kill the need for MAXLIST limit [if I don't will be yelled at?] + * XXX Side by side comparision of ftp and tweak the code to better mimicing + * XXX Ask for $50 per user of this patch so I can give up my day job + * XXX...
2019 Jan 25
0
[klibc:update-dash] expand: Fix bugs with words connected to the right of $@
...quotes) + 1; + if (!inquotes && !memcmp(p, dolatstr + 1, + DOLATSTRLEN - 1)) { + p = evalvar(p + 1, flag | EXP_QUOTED) + 1; goto start; } + inquotes ^= EXP_QUOTED; addquote: if (flag & QUOTES_ESC) { p--; @@ -1032,7 +1032,10 @@ ifsbreakup(char *string, int maxargs, struct arglist *arglist) realifs = ifsset() ? ifsval() : defifs; ifsp = &ifsfirst; do { + int afternul; + p = string + ifsp->begoff; + afternul = nulonly; nulonly = ifsp->nulonly; ifs = nulonly ? nullstr : realifs; ifsspc = 0; @@ -1097,7 +1100,7 @@ ifsbreaku...
2020 Mar 28
0
[klibc:update-dash] dash: expand: Fix bugs with words connected to the right of $@
...quotes) + 1; + if (!inquotes && !memcmp(p, dolatstr + 1, + DOLATSTRLEN - 1)) { + p = evalvar(p + 1, flag | EXP_QUOTED) + 1; goto start; } + inquotes ^= EXP_QUOTED; addquote: if (flag & QUOTES_ESC) { p--; @@ -1032,7 +1032,10 @@ ifsbreakup(char *string, int maxargs, struct arglist *arglist) realifs = ifsset() ? ifsval() : defifs; ifsp = &ifsfirst; do { + int afternul; + p = string + ifsp->begoff; + afternul = nulonly; nulonly = ifsp->nulonly; ifs = nulonly ? nullstr : realifs; ifsspc = 0; @@ -1097,7 +1100,7 @@ ifsbreaku...
2002 Feb 14
1
HP/UX 11 bug
...HP. Cheers, Mark --- util.c.OLD Tue Jan 29 15:25:08 2002 +++ util.c Tue Jan 29 15:30:03 2002 @@ -542,6 +542,7 @@ return; #else extern int sanitize_paths; + int trailing_slash = 0; glob_t globbuf; int i; @@ -559,10 +560,25 @@ globfree(&globbuf); return; } - for (i=0; i<(maxargs - (*argc)) && i < (int) globbuf.gl_pathc;i++) { + + /* remember pattern's trailing '/' (HP/UX glob(3) leaves it off matches) */ + if (*(argv[*argc] + strlen(argv[*argc]) - 1) == '/') + trailing_slash = 1; + + for (i = 0; i < (maxargs - (*argc)) && i <...
2009 Feb 19
1
NUT 2.4.1 crashes on FreeBSD - additional info
...t find anything. I'm at the end of my knowledge now, so i want to ask you >> if you did have any idea? >> >> Regards >> Volker Theile >> >> The output of some variables before the crash: >> >> argpos: 5 >> ctx->numargs: 6 >> ctx->maxargs: 5 >> ctx->wordbuf: 30 >> wbuflen: 2 >> ctx->argsize[argpos]: 0 >> ctx->arglist[argpos]: 0 >> newlen: 3 >> >> gdb backtrace: >> >> Program received signal SIGSEGV, Segmentation fault. >> 0x280e84ad in realloc () from /lib/libc.so...
2010 Dec 23
2
upsd crashes with a "broken pipe" error
In /var/log/syslog Dec 23 13:04:50 ************** upsmon[2010]: Poll UPS [rack1ups at localhost] failed - Write error: Broken pipe After this, there is no longer a upsd daemon running. Error messages follow: Dec 23 13:04:50 ************** upsmon[2010]: Communications with UPS rack1ups at localhost lost ... Dec 23 13:04:55 ************** upsmon[2010]: UPS [rack1ups at localhost]: connect