From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gxqg1-00075v-Hx for qemu-devel@nongnu.org; Fri, 22 Dec 2006 15:07:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gxqfz-00074y-Rb for qemu-devel@nongnu.org; Fri, 22 Dec 2006 15:07:32 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gxqfz-00074s-Cw for qemu-devel@nongnu.org; Fri, 22 Dec 2006 15:07:31 -0500 Received: from [70.168.83.79] (helo=centrmmtao05.cox.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gxqfy-00048F-VK for qemu-devel@nongnu.org; Fri, 22 Dec 2006 15:07:31 -0500 Received: from eastrmimpo02.cox.net ([68.1.16.120]) by centrmmtao05.cox.net (InterMail vM.6.01.06.03 201-2131-130-104-20060516) with ESMTP id <20061222200729.KKQP11822.centrmmtao05.cox.net@eastrmimpo02.cox.net> for ; Fri, 22 Dec 2006 15:07:29 -0500 Message-ID: <33061851.1166818049407.JavaMail.root@eastrmwml03.mgt.cox.net> Date: Fri, 22 Dec 2006 15:07:29 -0500 From: Ben Taylor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] patch for supporting SMB on Solaris host Reply-To: sol10x86@cox.net, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel: nongnu.org" Seeing as there is some working going on in the Solaris QEMU port again, here's a real short patch to support Samba working on a Solaris Host. --- qemu-ORIG/vl.c 2006-12-22 12:29:05.000000000 -0500 +++ qemu/vl.c 2006-12-22 14:22:17.338815000 -0500 @@ -3069,8 +3069,13 @@ fclose(f); atexit(smb_exit); +#ifdef __sun__ + snprintf(smb_cmdline, sizeof(smb_cmdline), "/bin/env LC_ALL=C /usr/sfw/sbin/smbd -s %s", + smb_conf); +#else snprintf(smb_cmdline, sizeof(smb_cmdline), "/usr/sbin/smbd -s %s", smb_conf); +#endif slirp_add_exec(0, smb_cmdline, 4, 139); }