lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150205175244.465c629e@gandalf.local.home>
Date:	Thu, 5 Feb 2015 17:52:44 -0500
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Al Viro <viro@...IV.linux.org.uk>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [RFC][PATCH 1/7] trace: fix the glob match in
 __unregister_ftrace_function_probe()

On Thu, 5 Feb 2015 22:30:39 +0000
Al Viro <viro@...IV.linux.org.uk> wrote:

> On Thu, Feb 05, 2015 at 03:43:36PM -0500, Steven Rostedt wrote:
> > Can you make search = NULL instead of glob at the start of the
> > function. That is:
> > 
> > 	if (!glob || strcmp(glob, "*") == 0 || !strlen(glob))
> > 		search = NULL;
> 
> Umm...  If we do it that way, I'd rather initialized search with NULL
> and inverted the test:
> 	if (glob && *glob && strcmp(glob, "*") != 0) {
> 		parse it and set search
> 	}

Fine with me.

-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ