search for: strcasecmp

Displaying 20 results from an estimated 358 matches for "strcasecmp".

2001 Feb 06
4
argv[0] => host feature considered harmful
OpenSSH still has this feature, SSH-1.2.27 no longer has it. Admittedly it can be useful sometimes, even though I'd prefer this to be done using a trivial shell wrapper, which would be the UNIX way of doing things. Not being able to call OpenSSH's ssh by another name (say ``ssh1'') can get in the way when having to maintain two versions of ssh in parallel because the ``ssh ->
2013 Feb 01
1
stable/9: Force ada1 to UDMA-33
Hello, I've got a (P)ATA disk in a special frame. The disk itself supports UDMA-100 (and has an 80-ribbon cable), but the frame isn't compatible with that. By default, FreeBSD negotiates UDMA-100, and the console starts to fill with ICRC errors. In the past, I used a patch to ata-all.c that enabled the following entry in loader.conf to force the disk to UDMA-33, so it worked fine:
2020 May 19
1
[PATCH nbdkit] common/include: Add locale-safe ascii_strcasecmp and ascii_strncasecmp.
These are derived from the FreeBSD functions here: https://github.com/freebsd/freebsd/blob/master/sys/libkern/strcasecmp.c Thanks: Eric Blake. --- common/include/Makefile.am | 6 +++ common/include/ascii-ctype.h | 6 +++ common/include/ascii-string.h | 77 ++++++++++++++++++++++++++++ common/include/test-ascii-string.c | 79 +++++++++++++++++++++++++++++ server/main.c...
2003 Nov 06
2
this is the code that breaks outgoing calls on grandstream
...;capability; 3963,3964d3959 < p->capability = peer->capability; < p->jointcapability = peer->capability; 5636d5630 < user->capability = capability; 5698,5709d5691 < } else if (!strcasecmp(v->name, "allow")) { < format = ast_getformatbyname(v->value); < if (format < 1) < ast_log(LOG_WARNING, "Cannot allow unknown format '%s'\n", v->value)...
2009 Nov 09
1
use STREQ(a,b), not strcmp(a,b) == 0
The series below makes changes like these mechanically, one class of change per change-set: strcmp(...) == 0 to STREQ(...) strcmp(...) != 0 to STRNEQ(...) strncmp(...) == 0 to STREQLEN(...) strncmp(...) != 0 to STRNEQLEN(...) strcasecmp(...) == 0 to STRCASEEQ(...) strcasecmp(...) != 0 to STRCASENEQ(...) strncasecmp(...) == 0 to STRCASEEQLEN(...) strncasecmp(...) != 0 to STRCASENEQLEN(...) Then it enables the "make syntax-check" tests to ensure no offending (convertable) use is introduced. But there's on...
2003 Nov 24
1
[PATCH] library functions
...r. # This patch includes the following deltas: # ChangeSet 1.247 -> 1.248 # klibc/Makefile 1.102 -> 1.103 # klibc/include/string.h 1.8 -> 1.9 # (new) -> 1.1 klibc/strncasecmp.c # (new) -> 1.1 klibc/strcasecmp.c # (new) -> 1.1 klibc/strndup.c # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/11/24 mort@green.i.bork.org 1.248 # Add a few new library functions: # -strcasecmp # -strncasecmp # -strndup # -Enable strerror() in th...
2010 Apr 09
2
[PATCH] gfxboot: support MENU LABEL statement
...char **argv) } // does not return if it succeeds - boot(); + boot(menu_index); } if(argc > 2) show_message(argv[2]); @@ -321,19 +321,19 @@ int read_config_file(void) if(*t) *t++ = 0; t = skip_spaces(t); - if(!strcmp(s, "timeout")) { + if(!strcasecmp(s, "timeout")) { timeout = atoi(t); continue; } - if(!strcmp(s, "default")) { + if(!strcasecmp(s, "default")) { menu_default->label = strdup(t); u = strlen(t); if(u > label_size) label_size = u; continu...
2020 Feb 06
3
Call for testing: OpenSSH 8.2
On 2020-02-06 at 13:28 +1100, Darren Tucker wrote: > Like this. > --- a/sshd_config.5 > +++ b/sshd_config.5 The ssh_config.5 also has a copy of this and presumably needs the same change, unless I've misunderstood. -Phil
2005 Jun 27
3
AGI "say number" but in french
...] I have looked in the code and about a 1/3 of the way thru there is : /*--- ast_say_number_full: call language-specific functions */ /* Called from AGI */ int ast_say_number_full(struct ast_channel *chan, int num, char *ints, char *language, char *options, int audiofd, int ctrlfd) { if (!strcasecmp(language,"en") ) { /* English syntax */ return(ast_say_number_full_en(chan, num, ints, language, audiofd, ctrlfd)); } else if (!strcasecmp(language, "da") ) { /* Danish syntax */ return(ast_say_number_full_da(chan, num, ints, language, opt...
2007 Feb 01
2
Re: [Nut-upsuser] Ablerex 625L USB version
...;Shutting down UPS immediately."); > > ! comm->send("C%c", ENDCHAR); > ! comm->send("S%02dR%04d%c%c", shutdown_delay, start_delay, ENDCHAR); > } > > > *************** > *** 581,589 **** > */ > > if (strcasecmp(cmdname, "test.battery.start.deep") == 0) { > ! ser_send_pace(upsfd, SEND_PACE, "TL%c", ENDCHAR); > > ! if (ser_get_line(upsfd, buffer, RECV_BUFFER_LEN, > ENDCHAR, IGNCHARS, READ_TIMEOUT, 0) > 0) { > upslog...
2005 Sep 03
1
Current status on _outgoing_ Swedish/Dutch DTMF CLIP for TDM400 FXS interfaces?
...n"); } } close(ctlfd); // End of code added - wj@xnk.nu fd = open(argv[1], O_RDWR); if (fd < 0) { fprintf(stderr, "Unable to open %s: %s\n", argv[1], strerror(errno)); exit(1); } if (!strcasecmp(argv[2], "ring")) { fprintf(stderr, "Ringing phone...\n"); x = ZT_RING; res = ioctl(fd, ZT_HOOK, &x); if (res) { fprintf(stderr, "Unable to ring phone...\n"); }...
2018 Nov 08
8
[nbdkit PATCH v2 0/5] log appends
v2 turned out to be much more involved, as I ended up fixing several things along the way that I noticed while debugging a feature addition. Eric Blake (5): maint: Improve ./nbdkit option parsing main: Saner newline printing during --help utils: Add nbdkit_parse_bool main: Use new bool parser for --tls log: Allow user option of appending to log docs/nbdkit-plugin.pod | 11
2020 May 20
2
rotatestrategy = none not working
Hi Steve, Thanks for the answer. Since that's what we already have configured, any idea why it wouldn't work? As I said, when "asterisk -rx 'logger reload'" is run it still rotates the log file. On Wed, 20 May 2020 at 18:37, Steve Edwards <asterisk.org at sedwards.com> wrote: > On Wed, 20 May 2020, David Cunningham wrote: > > > We have an Asterisk
2020 Mar 26
0
[PATCH nbdkit 5/9 patch split 2/5] lib: Move code for parsing, passwords and paths into libnbdkit.so.
...t; size) { - nbdkit_error ("overflow computing size (%s)", str); - return -1; - } - - return size * scale; -} - -/* Parse a string as a boolean, or return -1 after reporting the error. - */ -int -nbdkit_parse_bool (const char *str) -{ - if (!strcmp (str, "1") || - !strcasecmp (str, "true") || - !strcasecmp (str, "t") || - !strcasecmp (str, "yes") || - !strcasecmp (str, "y") || - !strcasecmp (str, "on")) - return 1; - - if (!strcmp (str, "0") || - !strcasecmp (str, "false")...
2004 Mar 23
2
A question on Compilation errors...
...ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib -lssh -lopenbsd-compat -lcrypto -lz collect2: ld returned 1 exit status readconf.o: In function `parse_token': /openssh-3.8p1/readconf.c(263): undefined reference to `strcasecmp' readconf.o: In function `process_config_line': /openssh-3.8p1/readconf.c(723): undefined reference to `strcasecmp' /openssh-3.8p1/readconf.c(725): undefined reference to `strcasecmp' /openssh-3.8p1/readconf.c(727): undefined reference to `strcasecmp' sshconnect.o: In function `...
2020 Mar 02
4
Question about host key algorithms
$ ssh -Q HostKeyAlgorithms Unsupported query "HostKeyAlgorithms" $ ssh -V OpenSSH_7.4p1, OpenSSL 1.0.2u 20 Dec 2019 On Mon, Mar 2, 2020 at 2:24 PM Christian Hesse <list at eworm.de> wrote: > Luveh Keraph <1.41421 at gmail.com> on Mon, 2020/03/02 14:07: > > When I do ssh -Q key, where ssh is the OpenSSH 7.4p1 client, I get the > > following output: > >
2008 Oct 15
2
imap segfaults in dovecot 1.2 on logout
Hi Timo, when logging out like a001 logout the imap child dies from signal 11. The back trace looks like this: Program received signal SIGSEGV, Segmentation fault. 0xb7ed4991 in strcasecmp () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0xb7ed4991 in strcasecmp () from /lib/tls/i686/cmov/libc.so.6 #1 0x0806ab6c in command_unregister (name=0x815b9ab "LOGOUT") at commands.c:83 #2 0x0806ac56 in command_unregister_array (cmdarr=0x815ba8c, count=25) at commands.c:101 #3 0x0...
2019 Aug 15
3
[nbdkit PATCH] nbd: Another libnbd version bump
...b/plugins/nbd/nbd.c @@ -62,7 +62,7 @@ struct transaction { sem_t sem; uint32_t early_err; uint32_t err; - struct nbdkit_extents *extents; + nbd_completion_callback cb; }; /* The per-connection handle */ @@ -160,11 +160,12 @@ nbdplug_config (const char *key, const char *value) if (strcasecmp (value, "require") == 0 || strcasecmp (value, "required") == 0 || strcasecmp (value, "force") == 0) - tls = 2; + tls = LIBNBD_TLS_REQUIRE; else { - tls = nbdkit_parse_bool (value); - if (tls == -1) + r = nbdkit_parse_bool...
2010 Jul 14
2
[PATCH] gfxboot: add include and menu include support
...nu_default = calloc(1, sizeof *menu_default); + } - if(!(f = fopen(syslinux_config_file(), "r"))) return 1; + if(!(f = fopen(filename, "r"))) return 1; while((s = fgets(buf, sizeof buf, f))) { chop_line(s); @@ -340,17 +349,17 @@ int read_config_file(void) if(!strcasecmp(s, "default")) { menu_default->label = strdup(t); u = strlen(t); - if(u > label_size) label_size = u; + if(u > gfx_menu.label_size) gfx_menu.label_size = u; continue; } if(!strcasecmp(s, "label")) { menu_ptr = *menu_next...
2011 Jan 07
2
[nut-commits] svn commit r2804 - in branches/ssl-nss-port: clients server
...11 (r2803) > +++ branches/ssl-nss-port/server/conf.c Thu Jan 6 10:27:55 2011 (r2804) > @@ -178,6 +178,22 @@ > return 1; > } > > + /* CERTREQUEST ("NO" | "REQUEST" | "REQUIRE") */ > + if (!strcmp(arg[0], "CERTREQUEST")) { > + if (strcasecmp(arg[1], "REQUEST") == 0) { > + certrequest = NETSSL_CERTREQ_REQUEST; > + } else if (strcasecmp(arg[1], "REQUIRE") == 0) { > + certrequest = NETSSL_CERTREQ_REQUIRE; > + } else if (strcasecmp(arg[1], "NO") == 0) { > + certrequest = NETSSL_CERTREQ_N...