qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Ben Taylor <sol10x86@cox.net>
To: Qemu-devel@nongnu.org
Subject: [Qemu-devel] PATCH: enable samba for Solaris
Date: Fri, 12 May 2006 20:55:42 -0400	[thread overview]
Message-ID: <31331193.1147481742835.JavaMail.root@eastrmwml06.mgt.cox.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]


This patch is to allow the onboard samba configuration in qemu to correctly start
the samba server on Solaris (It's in a different location than a normal linux system).

Ben

[-- Attachment #2: qemu-solaris-smb.patch --]
[-- Type: text/x-patch, Size: 510 bytes --]

diff -ruN qemu-orig/vl.c qemu/vl.c
--- qemu-orig/vl.c	2006-05-03 18:02:44.000000000 -0400
+++ qemu/vl.c	2006-05-12 20:48:32.642704000 -0400
@@ -2496,8 +2496,13 @@
     fclose(f);
     atexit(smb_exit);
 
+#ifdef HOST_SOLARIS
+    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-05-13  0:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=31331193.1147481742835.JavaMail.root@eastrmwml06.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).