Displaying 9 results from an estimated 9 matches for "maxargs".
Did you mean:
max_args
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;
c...
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;
c...
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 0...
2006 Apr 01
0
sftp tab completion patch (First release - NOT FOR INCLUDING YET)
This applies to the OpenBSD --current tree. Don't see why it shouldn't
work under portable.
Within the patch are the updates I need to make before I'll actually
submit it for real, but I figured I'd make a public drop.
Since I'm not on this list anymore keep me in the CC: if you want me to
respond.
I'll continue to work as time permits, but it would be nice if people
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 @@ ifsbreakup...
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 @@ ifsbreakup...
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