Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2005 10:23:29 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        freebsd-current@freebsd.org
Subject:   Re: rexecd break world
Message-ID:  <20050405172329.GB86590@troutmask.apl.washington.edu>
In-Reply-To: <20050405171923.GA86590@troutmask.apl.washington.edu>
References:  <20050405171923.GA86590@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 05, 2005 at 10:19:23AM -0700, Steve Kargl wrote:
> ===> libexec/rexecd (all)
> cc -O -pipe -march=opteron -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /usr/src/libexec/rexecd/rexecd.c
> /usr/src/libexec/rexecd/rexecd.c: In function `doit':
> /usr/src/libexec/rexecd/rexecd.c:206: warning: passing arg 4 of `xgetpwnam' from incompatible pointer type
> *** Error code 1
> 
> Stop in /usr/src/libexec/rexecd.
> *** Error code 1
> 

Watch for cut-n-paste problems.

--- /tmp/rexecd.c       Tue Apr  5 10:21:37 2005
+++ /usr/src/libexec/rexecd/rexecd.c    Tue Apr  5 10:20:30 2005
@@ -139,7 +139,7 @@
        char user[16], pass[16];
        struct passwd *pwd, pwd_storage;
        char *pwdbuf;
-       int pwdbuflen;
+       size_t pwdbuflen;
        int fd, r, sd;
        u_short port;
        int pv[2], pid, cc, nfds;


-- 
Steve



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