* [Qemu-devel] PATCH: enable samba for Solaris
@ 2006-05-13 0:55 Ben Taylor
0 siblings, 0 replies; only message in thread
From: Ben Taylor @ 2006-05-13 0:55 UTC (permalink / raw)
To: Qemu-devel
[-- 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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-13 0:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-13 0:55 [Qemu-devel] PATCH: enable samba for Solaris Ben Taylor
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).