Hello.

On Wed, 26 Sep 2007 18:59:15 +0100
Denys Vlasenko  wrote:
> On Wednesday 26 September 2007 08:44, Yuichi Nakamura wrote:
> > 
> > This patch fixes bug in setfiles.
> > setfiles segfaults in p[0] = '\0'.
> 
> I am applying this instead:
> 
> diff -urN busybox-1.7.1/selinux/setfiles.c 
> busybox-1.7.1-setfiles/selinux/setfiles.c
> --- busybox-1.7.1/selinux/setfiles.c    2007-09-03 12:48:46.000000000 +0100
> +++ busybox-1.7.1-setfiles/selinux/setfiles.c   2007-09-26 18:58:22.000000000 
> +0100
> @@ -189,7 +189,7 @@
>                         file_sep = strrchr(tmp_path, '/');
>                         if (file_sep == tmp_path) {
>                                 file_sep++;
> -                               p[0] = '\0';
> +                               path[0] = '\0';
>                                 p = path;
>                         } else if (file_sep) {
>                                 *file_sep++ = '\0';
>  
> 
> It should be shorter.
I agree, please apply this.

-- 
Yuichi Nakamura
Hitachi Software Engineering Co., Ltd.
Japan SELinux Users Group(JSELUG): http://www.selinux.gr.jp/
SELinux Policy Editor: http://seedit.sourceforge.net/

_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to