qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Ben Taylor <sol10x86@cox.net>
To: "qemu-devel: nongnu.org" <qemu-devel@nongnu.org>
Subject: [Qemu-devel] patch for supporting SMB on Solaris host
Date: Fri, 22 Dec 2006 15:07:29 -0500	[thread overview]
Message-ID: <33061851.1166818049407.JavaMail.root@eastrmwml03.mgt.cox.net> (raw)


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); 
 } 

             reply	other threads:[~2006-12-22 20:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-22 20:07 Ben Taylor [this message]
2006-12-22 21:29 ` [Qemu-devel] patch for supporting SMB on Solaris host Paul Brook
2006-12-22 21:32   ` Paul Brook
  -- strict thread matches above, loose matches on Subject: below --
2006-12-23  0:06 Ben Taylor
2006-12-23  1:40 Ben Taylor
2006-12-23  1:48 ` Lennert Buytenhek
2006-12-23  1:40 Ben Taylor
2006-12-23 13:17 Ben Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=33061851.1166818049407.JavaMail.root@eastrmwml03.mgt.cox.net \
    --to=sol10x86@cox.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).