PATCH: enable samba for Solaris
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
@@ -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 ); }