Skip to contentSkip to conversation

patch for supporting SMB on Solaris host

Qemu-devel Ben Taylor 1 participant 1 message Dec 23, 2006

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw
Quoted 12 lines · ---- Paul Brook
Quoted 10 lines · Paul Brook

Review

Quoted 7 lines · Ben Taylor

Seeing as there is some working going on in the Solaris QEMU port again, here's a real short patch to support Samba working on a Solaris Host.

(quoted diff) +2 -0
+#ifdef __sun__
+    snprintf(smb_cmdline, sizeof(smb_cmdline), "/bin/env LC_ALL=C

/usr/sfw/sbin/smbd -s %s",

(quoted diff) +2 -0
+             smb_conf);
+#else

Why does this have anything to do with solaris?

Quoted 3 lines

Sorry, I was unclear. The /usr/swf bif is obviously a Solaris hack, and I think this is a bad way of implementing this.
I don't see why the /bin/env LC_ALL bits have anything to do with Solaris.

Hopefully, you find this patch to be more reasonable.

Ben