Displaying 20 results from an estimated 237 matches for "strpbrk".
2012 Jan 09
1
[PATCH] xenstat: Correct copy of network device name
When xenstat library parse /proc/net/dev, it uses strpbrk function to get pointer
to device name. However, it miss capital letters in the array of valid characters
so it get incorrect name in case device name starts with capital letters or even
segfault if it contains only capital letters.
This patch adds missing characters to strpbrk call.
Signed-off-b...
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
....itp.tuwien.ac.at/~mattems/klibc.git maks
with the following shortlog:
maximilian attems (9):
mount: add nodev, noexec and nosuid options
mount: add -n option
cpio: small cleanups
readlink: s/link/link_name/
kinit, mknod: s/(major|minor)/\1_num/
klibc: strcspn, strpbrk, strspn include string.h
resume, kill: axe unused envp usage
devname.c: include kinit.h
add bzero()
and diffstat
usr/include/string.h | 1
usr/kinit/devname.c | 2 +
usr/kinit/do_mounts_md.c | 18 +++++------
usr/kinit/name_to_dev.c | 16 +++++-----
usr...
2005 Apr 28
0
[LLVMdev] SimplifyLibCalls Pass -- Help!
...ncmp:
* strncmp(x,y,0) -> 0
* strncmp(x,x,l) -> 0
* strncmp(x,"",l) -> *x
* strncmp("",x,l) -> *x
* strncmp(x,y,1) -> *x - *y
strncpy:
* strncpy(d,s,0) -> d
* strncpy(d,s,l) -> memcpy(d,s,l,1)
(if s and l are constants)
strpbrk:
* strpbrk(s,a) -> offset_in_for(s,a)
(if s and a are both constant strings)
* strpbrk(s,"") -> 0
* strpbrk(s,a) -> strchr(s,a[0]) (if a is constant string of length
1)
strspn, strcspn:
* strspn(s,a) -> const_int (if both args are constant)
* strspn(&q...
2007 Sep 06
0
3 commits - libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
....
+ **/
+static gboolean
+swfdec_action_get_movie_by_path (SwfdecAsContext *cx, const char *path,
+ SwfdecAsObject **object, const char **variable)
+{
+ SwfdecAsObject *movie;
+ const char *s;
+ SwfdecAsValue val;
+ gboolean was_slash = FALSE;
+
+ /* shortcut for the general case */
+ if (strpbrk (path, ".:/") == NULL) {
+ *object = NULL;
+ *variable = path;
+ return TRUE;
+ }
+
+ /* in general, any combination of dot, colon and slash is allowed, but there
+ * is some weird stuff that is not allowed. WE check this first: */
+ /* if a slash is last, no colon or dot ma...
2007 Sep 08
0
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_video_movie_as.c
...t; 0),
++ SLASHES = (1 << 1),
++ WAS_SLASH = (1 << 2),
++ DOTS = (1 << 3),
++ COLONS = (1 << 4),
++ DOUBLE = (1 << 5),
++ BACKS = (1 << 6)
++ } flags = STARTING;
++
++ g_assert (path != NULL);
/* shortcut for the general case */
if (strpbrk (path, ".:/") == NULL) {
@@@ -456,97 -438,98 +473,100 @@@
return TRUE;
}
-- /* in general, any combination of dot, colon and slash is allowed, but there
-- * is some weird stuff that is not allowed. WE check this first: */
-- /* if a slash is last, no colon or dot may be...
2020 Apr 03
4
Segfault after compiling wget with dfsan
Hi all,
I was trying to compile dfsan with wget. (Just enabling the dfsan feature,
without actually making changes to the source code) Without dfsan, I am
able to compile and run wget 1.19.5 (available at
https://ftp.gnu.org/gnu/wget/wget-1.19.5.tar.gz). But when compiled with
dfsan, it encountered a null pointer dereference error.
Following an old post:
2010 Mar 11
6
[Bug 1734] New: IPv6 address in port forward options (-L) requires square brackets
https://bugzilla.mindrot.org/show_bug.cgi?id=1734
Summary: IPv6 address in port forward options (-L) requires
square brackets
Product: Portable OpenSSH
Version: 5.4p1
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: ssh
AssignedTo:
2020 Feb 09
3
[draft PATCH] whitelist support for refuse options
...39;t use) to temporarily store
+ * a refuse flag. Refused options may be un-refused later in the
+ * loop if whitelist mode is triggered. */
while (1) {
while (*bp == ' ') bp++;
if (!*bp)
break;
if ((cp = strchr(bp, ' ')) != NULL)
*cp= '\0';
- is_wild = strpbrk(bp, "*?[") != NULL;
- found_match = 0;
+ if (!strcmp(bp, "!")) {
+ whitelist_mode = 1;
+ for (op = long_options; ; op++) {
+ *shortname = op->shortName;
+ if (!op->longName && !*shortname)
+ break;
+ if (*shortname != 'e' && (!op-...
2002 Nov 05
2
2.5.6 release
On Tue, Nov 05, 2002 at 08:37:00AM -0800, Martin Pool wrote:
> On 10 Oct 2002, "Green, Paul" <Paul.Green@stratus.com> wrote:
> > No new CVS messages have appeared on the rsync-cvs archives since August
> > 30th. This seems rather odd-- perhaps a daemon stopped working? If there
> > has truly been no activity since that date, I apologize for
> >
2014 Jan 28
1
recipient_delimiter -- feature request
Hi,
It would be nice if the recipient_delimiter configuration option
supported multiple recipient delimiters as Postfix now does.
e.g. now if I set: recipient_delimiter = +- in Postfix, then
test-extension at sample.com and test+extension at sample.com are both recognized.
But if I set: recipient_delimiter = +- in Dovecot, neither of the above
are recognized and instead test+-extension at
2010 Jul 07
3
Message: "err:psdrv:PSDRV_PPDGetNextTuple Line too long."
..._Heap, 0, endkey - line + 1 );
00401 if(!tuple->key) return FALSE;
00402
00403 memcpy(tuple->key, line, endkey - line);
00404 tuple->key[endkey - line] = '\0';
00405
00406 if(gotoption) { /* opt points to 1st non-space character of the option */
00407 cp = strpbrk(opt, ":/");
00408 if(!cp) {
00409 ERR("Error in line '%s'?\n", line);
00410 HeapFree(GetProcessHeap(), 0, tuple->key);
00411 goto start;
00412 }
00413 tuple->option = HeapAlloc( PSDRV_Heap, 0, cp - opt + 1 );
00414...
2001 Dec 16
1
compile errors with rsync 2.5.0 for RedHat linux 7.1 alpha
...nk... yes
checking for utime... yes
checking for utimes... yes
checking for strftime... yes
checking for memmove... yes
checking for lchown... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... yes
checking for setsid... yes
checking for glob... yes
checking for strpbrk... yes
checking for strlcat... no
checking for strlcpy... no
checking for mtrace... yes
checking for working socketpair... yes
checking for working fnmatch... yes
checking for poptGetContext in -lpopt... yes
checking whether to use included libpopt... no
checking for long long... yes
checking for o...
2002 Jun 24
0
Rsync 2.5.5: FreeBSD mknod can't create FIFO's
...NULL
-AC_CHECK_FUNCS(waitpid wait4 getcwd strdup strerror chown chmod mknod)
+AC_CHECK_FUNCS(waitpid wait4 getcwd strdup strerror chown chmod mknod mkfifo)
AC_CHECK_FUNCS(fchmod fstat strchr readlink link utime utimes strftime)
AC_CHECK_FUNCS(memmove lchown vsnprintf snprintf asprintf setsid glob strpbrk)
AC_CHECK_FUNCS(strlcat strlcpy mtrace mallinfo setgroups)
diff -ur work/rsync-2.5.5/rsync.h work.patch/rsync-2.5.5/rsync.h
--- work/rsync-2.5.5/rsync.h Mon Jun 24 14:53:36 2002
+++ work.patch/rsync-2.5.5/rsync.h Mon Jun 24 14:45:25 2002
@@ -108,6 +108,10 @@
#ifdef HAVE_SYS_SOCKET_H
#include &...
2002 Feb 06
1
2.5.2 will not compile
.... yes
checking for utimes... yes
checking for strftime... yes
checking for memmove... yes
checking for lchown... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... yes
checking for setsid... yes
checking for glob... yes
checking for strpbrk... yes
checking for strlcat... no
checking for strlcpy... no
checking for mtrace... yes
checking for mallinfo... yes
checking for working socketpair... yes
checking for working fnmatch... yes
checking for poptGetContext in -lpopt... yes
checking whether to use included libpo...
2020 Mar 28
0
[klibc:update-dash] Implement stpcpy() and stpncpy()
...f /* _STRING_H */
diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
index 19ccfbec..b966e306 100644
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -46,6 +46,7 @@ klib-y += vsnprintf.o snprintf.o vsprintf.o sprintf.o \
strstr.o strncmp.o strncpy.o strrchr.o \
strxspn.o strspn.o strcspn.o strpbrk.o strsep.o strtok.o \
strtok_r.o \
+ stpcpy.o stpncpy.o \
fnmatch.o \
gethostname.o getdomainname.o getcwd.o \
seteuid.o setegid.o \
diff --git a/usr/klibc/stpcpy.c b/usr/klibc/stpcpy.c
new file mode 100644
index 00000000..c5fc607d
--- /dev/null
+++ b/usr/klibc/stpcpy.c
@@ -0,0 +1...
2002 May 07
0
Fixing exclude/exclude wildcard handling
..." ,\t")) {
- if (fnmatch(tok, user, 0) == 0) break;
+ if (wildmat(user, tok)) break;
}
free(users);
Index: exclude.c
--- exclude.c 2002/04/11 02:25:53 1.44
+++ exclude.c 2002/05/08 04:19:50
@@ -55,18 +55,7 @@
if (!ret->pattern) out_of_memory("make_exclude");
if (strpbrk(pattern, "*[?")) {
- ret->regular_exp = 1;
- ret->fnmatch_flags = FNM_PATHNAME;
- if (strstr(pattern, "**")) {
- static int tested;
- if (!tested) {
- tested = 1;
- if (fnmatch("a/b/*", "a/b/c/d", FNM_PATHNAME)==0) {
-...
2008 Dec 25
0
[PATCH 2/4] dom0 linux: Add "guestdev=" boot parameter.
...f (*func < 0 || FUNC_NUM_MAX < *func)
+ goto format_err_end;
+
+ return TRUE;
+
+format_err_end:
+ return FALSE;
+}
+
+/* Check extended guestdev parameter format error */
+static int pci_check_extended_guestdev_format(char *str)
+{
+ int flg;
+ char *p;
+
+ /* Check extended format */
+ if (strpbrk(str, "(|)") == NULL)
+ return TRUE;
+
+ flg = 0;
+ p = str;
+ while (*p) {
+ switch (*p) {
+ case ''('':
+ /* Check nesting error */
+ if (flg != 0)
+ goto format_err_end;
+ flg = 1;
+ /* Check position of ''('' is head or
+ previos chara...
2007 Aug 15
0
[git patch] fstype support + minor stuff
....o memswap.o \
- memmove.o memchr.o memrchr.o \
- strcasecmp.o strncasecmp.o strndup.o strerror.o strsignal.o \
- strcat.o strchr.o strcmp.o strcpy.o strdup.o strlen.o strnlen.o \
- strncat.o strlcpy.o strlcat.o \
- strstr.o strncmp.o strncpy.o strrchr.o \
- strxspn.o strspn.o strcspn.o strpbrk.o strsep.o strtok.o \
- fnmatch.o \
- gethostname.o getdomainname.o getcwd.o \
- seteuid.o setegid.o \
- getenv.o setenv.o putenv.o __put_env.o unsetenv.o \
- clearenv.o nullenv.o \
- getopt.o getopt_long.o readdir.o remove.o \
- syslog.o closelog.o pty.o getpt.o isatty.o reboot.o \
-...
2002 Mar 22
2
Bug in compile of rsync 2.5.4 on Tru64 UNIX V5.1a using cc
...ink... yes
checking for utime... yes
checking for utimes... yes
checking for strftime... yes
checking for memmove... yes
checking for lchown... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... no
checking for setsid... yes
checking for glob... yes
checking for strpbrk... yes
checking for strlcat... no
checking for strlcpy... no
checking for mtrace... no
checking for mallinfo... yes
checking for setgroups... yes
checking for working socketpair... yes
checking for working fnmatch... yes
checking for poptGetContext in -lpopt... no
checking whether to use included l...
2012 Apr 21
7
[Bug 782] New: -j LOG --log-prefix handling broken
.....", --log-prefix option
parsing works OK. Also, iptables-save works.
I use iptables git 8db1044ba608a.
previous version of iptables I had, from 20111119, worked ok. now I only
upgraded iptables and glibc (to fedora 2.15-32.fc17; I made a testcase for
xtables_save_string , so I guess strspn+strpbrk were not broken by glibc
upgrade).
--
Configure bugmail: http://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.