From mboxrd@z Thu Jan 1 00:00:00 1970 From: "=?utf-8?q?S=2E=C3=87a=C4=9Flar?= Onur" Subject: Re: [PATCH] Enabling vtpm causes installation error Date: Sat, 19 May 2007 03:01:36 +0300 Message-ID: <200705190301.37102.caglar@pardus.org.tr> References: <200705190238.10695.caglar@pardus.org.tr> <464E3CA1.6050102@redhat.com> Reply-To: caglar@pardus.org.tr Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1114425885==" Return-path: In-Reply-To: <464E3CA1.6050102@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Ulrich Drepper List-Id: xen-devel@lists.xenproject.org --===============1114425885== Content-Type: multipart/signed; boundary="nextPart1903192.yE4fZet4e5"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1903192.yE4fZet4e5 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 19 May 2007 Cts tarihinde, Ulrich Drepper =C5=9Funlar=C4=B1 yazm=C4=B1=C5= =9Ft=C4=B1:=20 > S.=C3=87a=C4=9Flar Onur wrote: > > -+ struct sockaddr_un client_addr; > > ++ struct sockaddr client_addr; > > This is very wrong. struct sockaddr is basically an abstract type. You > never allocate objects of this type. Add casts in places where > client_addr is used. Irgh, thanks! Here is the updated one; Signed-off-by: S.=C3=87a=C4=9Flar Onur diff -r aee991c7723a tools/vtpm/vtpm.patch =2D-- a/tools/vtpm/vtpm.patch Wed May 09 16:34:47 2007 +0100 +++ b/tools/vtpm/vtpm.patch Sat May 19 03:00:28 2007 +0300 @@ -579,7 +579,7 @@ diff -uprN tpm_emulator/tpmd.c vtpm/tpmd + memset(&client_addr, 0, sizeof(client_addr)); + client_length =3D sizeof(client_addr); + =2D+ vtpm_rx_fh =3D vtpm_tx_fh =3D accept(sockfd, &client_addr,=20 &client_length); ++ vtpm_rx_fh =3D vtpm_tx_fh =3D accept(sockfd, (struct sockaddr=20 *)&client_addr, &client_length); + } +#endif } Cheers =2D-=20 S.=C3=87a=C4=9Flar Onur http://cekirdek.pardus.org.tr/~caglar/ Linux is like living in a teepee. No Windows, no Gates and an Apache in hou= se! --nextPart1903192.yE4fZet4e5 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (GNU/Linux) iD4DBQBGTj5hy7E6i0LKo6YRAgyUAJjFvKfYkUHNom3XCTWgESq2d9T6AKCVZagy jISARx5XE0Fo97u/uobbnA== =5noN -----END PGP SIGNATURE----- --nextPart1903192.yE4fZet4e5-- --===============1114425885== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1114425885==--