Solaris SMBD hacks (Ben Taylor).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2276 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
04d4b0c33f
commit
a14d6c8c65
9
vl.c
9
vl.c
@ -89,6 +89,11 @@
|
||||
#include "exec-all.h"
|
||||
|
||||
#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
|
||||
#ifdef __sun__
|
||||
#define SMBD_COMMAND "/usr/sfw/sbin/smbd"
|
||||
#else
|
||||
#define SMBD_COMMAND "/usr/sbin/smbd"
|
||||
#endif
|
||||
|
||||
//#define DEBUG_UNUSED_IOPORT
|
||||
//#define DEBUG_IOPORT
|
||||
@ -3084,8 +3089,8 @@ void net_slirp_smb(const char *exported_dir)
|
||||
fclose(f);
|
||||
atexit(smb_exit);
|
||||
|
||||
snprintf(smb_cmdline, sizeof(smb_cmdline), "/usr/sbin/smbd -s %s",
|
||||
smb_conf);
|
||||
snprintf(smb_cmdline, sizeof(smb_cmdline), "%s -s %s",
|
||||
SMBD_COMMAND, smb_conf);
|
||||
|
||||
slirp_add_exec(0, smb_cmdline, 4, 139);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user