Date: Wed, 3 Jul 2013 22:57:20 +0000 (UTC) From: "David E. O'Brien" <obrien@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r252638 - in stable/9/usr.sbin/pkg_install: add create lib Message-ID: <201307032257.r63MvKhd050450@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: obrien Date: Wed Jul 3 22:57:20 2013 New Revision: 252638 URL: http://svnweb.freebsd.org/changeset/base/252638 Log: Really MFC r252363 (sysconf(3) returns a long, not an int). Modified: stable/9/usr.sbin/pkg_install/add/extract.c stable/9/usr.sbin/pkg_install/create/pl.c stable/9/usr.sbin/pkg_install/lib/exec.c Directory Properties: stable/9/ (props changed) stable/9/usr.sbin/ (props changed) stable/9/usr.sbin/pkg_install/ (props changed) stable/9/usr.sbin/pkg_install/add/ (props changed) Modified: stable/9/usr.sbin/pkg_install/add/extract.c ============================================================================== --- stable/9/usr.sbin/pkg_install/add/extract.c Wed Jul 3 22:46:30 2013 (r252637) +++ stable/9/usr.sbin/pkg_install/add/extract.c Wed Jul 3 22:57:20 2013 (r252638) @@ -110,7 +110,8 @@ extract_plist(const char *home, Package PackingList p = pkg->head; char *last_file, *prefix = NULL; char *where_args, *perm_args, *last_chdir; - int maxargs, where_count = 0, perm_count = 0, add_count; + long maxargs; + int where_count = 0, perm_count = 0, add_count; Boolean preserve; maxargs = sysconf(_SC_ARG_MAX) / 2; /* Just use half the argument space */ Modified: stable/9/usr.sbin/pkg_install/create/pl.c ============================================================================== --- stable/9/usr.sbin/pkg_install/create/pl.c Wed Jul 3 22:46:30 2013 (r252637) +++ stable/9/usr.sbin/pkg_install/create/pl.c Wed Jul 3 22:57:20 2013 (r252638) @@ -140,7 +140,8 @@ copy_plist(const char *home, Package *pl const char *there = NULL, *mythere; char *where_args, *prefix = NULL; const char *last_chdir, *root = "/"; - int maxargs, where_count = 0, add_count; + long maxargs; + int where_count = 0, add_count; struct stat stb; dev_t curdir; Modified: stable/9/usr.sbin/pkg_install/lib/exec.c ============================================================================== --- stable/9/usr.sbin/pkg_install/lib/exec.c Wed Jul 3 22:46:30 2013 (r252637) +++ stable/9/usr.sbin/pkg_install/lib/exec.c Wed Jul 3 22:57:20 2013 (r252638) @@ -64,7 +64,7 @@ vpipe(const char *fmt, ...) { FILE *fp; char *cmd, *rp; - int maxargs; + long maxargs; va_list args; rp = malloc(MAXPATHLEN);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307032257.r63MvKhd050450>