Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 1995 12:31:39 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        CVS-commiters@time.cdrom.com, cvs-other@time.cdrom.com, jkh@time.cdrom.com
Subject:   Re: cvs commit: /host/freefall/a/ncvs/src/usr.sbin/pkg_install/create perform.c
Message-ID:  <199504250231.MAA11649@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  Modified:    host/freefall/a/ncvs/src/usr.sbin/pkg_install/create 
>                        perform.c
>  Log:
>  Use ARG_MAX instead of _POSIX_ARG_MAX:  4K is too small!
>  This should stop the SIGBUS errors in pkg_create for some packages.

You should use sysconf(_SC_ARG_MAX) as in create/pl.c and stop the
SIGBUS errors by ensuring that the array isn't overrun, e.g., by
using snprintf as in create/pl.c.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504250231.MAA11649>