Skip to contentSkip to conversation

patch for supporting SMB on Solaris host

Qemu-devel Ben Taylor 2 participants 3 messages Dec 22, 2006

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw

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.

vl.c 2006-12-22 14:22:17.338815000 -0500 renamed from vl.c 2006-12-22 12:29:05.000000000 -0500 +2 -0
@@ -3069,8 +3069,13 @@ 
     fclose(f); 
     atexit(smb_exit); 
 
+#ifdef __sun__ 
+    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); 

}

#1 lore raw

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.

vl.c 2006-12-22 14:22:17.338815000 -0500 renamed from vl.c 2006-12-22 12:29:05.000000000 -0500 +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?

Paul

#2 lore raw
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.

vl.c 2006-12-22 14:22:17.338815000 -0500 renamed from vl.c 2006-12-22 12:29:05.000000000 -0500 +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?

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.

Paul