search for: strlower

Displaying 12 results from an estimated 12 matches for "strlower".

2000 Aug 28
0
National characters in user name
...reply_sesssetup_and_X() in the file smbd/reply.c, the > following happens: > > - The user name is converted from a DOS code page to a UNIX > character set using dos_to_unix(user,True). > > - The UNIX version of the user name is then converted to lower case > using strlower(user). > > But, as far as I can see, strlower() uses the DOS mapping between > upper and lower case, not the UNIX mapping. > > In other words, a DOS code page table is used to map UNIX (ISO-8859) > characters to lower case. > > Isn't this wrong? Yes, this is indeed a...
2003 Jul 05
2
Unhelpful error message when matching hosts in access list [PATCH]
...*s) +{ + size_t len = strlen(s); + + return ((strspn(s, ".0123456789") == len) +#ifdef INET6 + || (strspn(s, ":0123456789ABCDEFabcdef") == len) +#endif + ); +} + static int access_match(char *list, char *addr, char *host) { char *tok; @@ -203,7 +218,9 @@ if (host) strlower(host); for (tok=strtok(list2," ,\t"); tok; tok=strtok(NULL," ,\t")) { - if (match_hostname(host, tok) || match_address(addr, tok)) { + if (match_hostname(host, tok) + || (likely_address(tok) + && match_address(addr, tok))) { free(list2); return 1;...
2002 Feb 27
2
Can not get rsync 2.5.2 or CVS t build Solaris8/GNU RTFM
Sorry about that ./configure --with-included-popt But then 200+ plus lines of warnings :( I'll read some more -pete
2002 May 07
0
Fixing exclude/exclude wildcard handling
...B_H #include <glob.h> @@ -392,8 +388,7 @@ struct exclude_struct { char *pattern; - int regular_exp; - int fnmatch_flags; + int wild_match; int include; int directory; int local; Index: token.c --- token.c 2002/04/08 08:35:30 1.22 +++ token.c 2002/05/08 04:19:53 @@ -51,7 +51,7 @@ strlower(fname); for (tok=strtok(dont," ");tok;tok=strtok(NULL," ")) { - if (fnmatch(tok, fname, 0) == 0) { + if (wildmat(fname, tok)) { compression_level = 0; break; } Index: lib/wildmat.c --- /dev/null Wed Dec 31 16:00:00 1969 +++ lib/wildmat.c Tue May 7 20:59:28 2002...
2004 May 27
0
compiling on HP-UX
...': exclude.c:252: warning: signed and unsigned type in conditional expression exclude.c:269: warning: signed and unsigned type in conditional expression exclude.c: In function `add_exclude_file': exclude.c:350: warning: signed and unsigned type in conditional expression util.c: In function `strlower': util.c:578: warning: signed and unsigned type in conditional expression In file included from options.c:22: popt/popt.h:377: warning: type qualifiers ignored on function return type socket.c: In function `establish_proxy_connection': socket.c:97: warning: signed and unsigned type in condi...
2002 Mar 28
1
(no subject)
...H -Wall -W -I./popt -c exclude.c -o exclude.o exclude.c: In function `get_exclude_tok': exclude.c:337: warning: subscript has type `char' exclude.c:350: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c util.c -o util.o util.c: In function `strlower': util.c:637: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c socket.c -o socket.o socket.c: In function `establish_proxy_connection': socket.c:71: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./po...
2002 Feb 20
1
Errors compiling rsync 2.5.2 on Solaris 8
...NFIG_H -Wall -W -I./popt -c exclude.c -o exclude.o exclude.c: In function `get_exclude_tok': exclude.c:332: warning: subscript has type `char' exclude.c:345: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c util.c -o util.o util.c: In function `strlower': util.c:609: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c main.c -o main.o main.c: In function `client_run': main.c:529: warning: `flist' might be used uninitialized in this function main.c: In function `sigusr1_handler': main.c:779...
2002 Nov 06
4
Rsync-2.5.5 on Tru64 UNIX V51.A
...ONFIG_H -Wall -W -I./popt -c exclude.c -o exclude.o exclude.c: In function `get_exclude_tok': exclude.c:337: warning: subscript has type `char' exclude.c:350: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c util.c -o util.o util.c: In function `strlower': util.c:637: warning: subscript has type `char' util.c:637: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c main.c -o main.o main.c: In function `start_client': main.c:664: warning: unused variable `whole_file' main.c:665: warning: unu...
2002 Jan 29
1
Solaris 2.8/2.5.2 build issues
...ONFIG_H -Wall -W -I./popt -c exclude.c -o exclude.o exclude.c: In function `get_exclude_tok': exclude.c:332: warning: subscript has type `char' exclude.c:345: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c util.c -o util.o util.c: In function `strlower': util.c:609: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c main.c -o main.o main.c: In function `client_run': main.c:529: warning: `flist' might be used uninitialized in this function main.c: In function `sigusr1_handler': main.c:779...
2003 Oct 08
4
OS/390 openssh
...@@ -148,6 +148,11 @@ memset(copy, 0, sizeof(*copy)); copy->pw_name = xstrdup(pw->pw_name); +#if #system(bs2000) + /* Convert the UPPERCASE USER into all lowercase to ease connectivity with unix. */ + /* IMO that is legitimate, as BS2000's user names are case insensitive */ + strlower(copy->pw_name, NULL); +#endif copy->pw_passwd = xstrdup(pw->pw_passwd); copy->pw_gecos = xstrdup(pw->pw_gecos); copy->pw_uid = pw->pw_uid; diff -bur openssh-3.7.1p2.orig/monitor.c openssh-3.7.1p2/monitor.c --- openssh-3.7.1p2.orig/monitor.c Tue Sep 2 23:32:46 2003 +++ op...
2003 Dec 01
0
No subject
...BOOL newhandle = False; + char *data; + struct timeval tp_start; + int read_size = io_bufsize; + uint16 attr; + size_t size; + off_t nread = 0; + off_t hashbytes = HASHBYTES; + + GetTimeOfDay(&tp_start); + + if (lowercase) { + strlower(lname); + } + + fnum = cli_open(cli, rname, O_RDONLY, DENY_NONE); + + if (fnum == -1) { + DEBUG(0,("%s opening remote file %s\n",cli_errstr(cli),rname)); + return; + } + + if(!strcmp(lname,"-")) { + handle =...
2003 Dec 01
0
No subject
...void do_reget(char *rname,char *lname) +{ + int handle=0,fnum; + BOOL newhandle = False; + char *data; + struct timeval tp_start; + int read_size = io_bufsize; + uint16 attr; + size_t size; + off_t nread = 0; + off_t hashbytes = HASHBYTES; + + GetTimeOfDay(&tp_start); + + if (lowercase) { + strlower(lname); + } + + fnum = cli_open(cli, rname, O_RDONLY, DENY_NONE); + + if (fnum == -1) { + DEBUG(0,("%s opening remote file %s\n",cli_errstr(cli),rname)); + return; + } + + if(!strcmp(lname,"-")) { + handle = fileno(stdout); + } else { + struct stat stbuf; + int ret; +...