Skip to contentSkip to conversation

PATCH: enable samba for Solaris

Qemu-devel Ben Taylor 1 participant 1 message May 13, 2006

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw

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

vl.c +5 -0
diff -ruN qemu-orig/vl.c qemu/vl.c
@@ -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);
 }