==> Regarding [autofs] parse_sun.c error; Brad Arrington <[EMAIL PROTECTED]> 
adds:

> diff -ur autofs-4.1.4a/modules/parse_sun.c autofs-4.1.4b/modules/parse_sun.c
> --- autofs-4.1.4a/modules/parse_sun.c   2005-04-05 05:42:42.000000000 -0700
> +++ autofs-4.1.4b/modules/parse_sun.c   2006-07-22 11:55:39.000000000 -0700
> @@ -647,10 +647,6 @@
>         mountpoint = alloca(namelen + 1);
>         sprintf(mountpoint, "%.*s", namelen, name);

> -       what = alloca(loclen + 1);
> -       memcpy(what, loc, loclen);
> -       what[loclen] = '\0';
> -
>         if (!strcmp(fstype, "autofs") && strchr(loc, ':') == NULL) {
>                 char mtype[7];
>                 int mtype_len;
> _______________ cut __________________________

> diff -ur autofs-5.0.1a/modules/parse_sun.c autofs-5.0.1b/modules/parse_sun.c
> --- autofs-5.0.1a/modules/parse_sun.c   2006-07-13 01:11:39.000000000 -0700
> +++ autofs-5.0.1b/modules/parse_sun.c   2006-07-22 13:37:40.000000000 -0700
> @@ -669,9 +669,6 @@
>                 what[loclen + mtype_len] = '\0';
>         } else {
>  */
> -               what = alloca(loclen + 1);
> -               memcpy(what, loc, loclen);
> -               what[loclen] = '\0';
>  /*     } */

>         debug(ap->logopt,

Looks sane to me.

-Jeff

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to