[Mono-bugs] [Bug 78917][Nor] New - [patch] sanitize nameu() result in io-layer/shared.c
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jul 21 03:02:42 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by petr.salinger at seznam.cz.
http://bugzilla.ximian.com/show_bug.cgi?id=78917
--- shadow/78917 2006-07-21 03:02:42.000000000 -0400
+++ shadow/78917.tmp.7110 2006-07-21 03:02:42.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 78917
+Product: Mono: Runtime
+Version: unspecified
+OS: other
+OS Details: GNU/kFreeBSD
+
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: io-layer
+AssignedTo: dick at ximian.com
+ReportedBy: petr.salinger at seznam.cz
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [patch] sanitize nameu() result in io-layer/shared.c
+
+Hi,
+
+I tried to build mono on GNU/kFreeBSD,
+there is problem with _wapi_shm_file().
+
+On GNU/kFreeBSD "operating system name"/"kernel name" contains "/":
+
+$ uname
+GNU/kFreeBSD
+
+$ uname -a
+GNU/kFreeBSD orion-bsd.eurosignal.cz 6.1-1-686 #2 Tue Jun 27 15:08:38 CEST
+2006 i686 i386 Intel(R) Pentium(R) 4 CPU 1.60GHz GNU/kFreeBSD
+
+
+So, the generated filename contains extra directory part.
+
+Please, could you sanitize uname() result.
+For GNU/kFreeBSD case is sufficient patch bellow.
+
+Thanks
+
+Petr
+
+--- mono/io-layer/shared.c.ORIG 2006-07-21 10:06:30.000000000 +0200
++++ mono/io-layer/shared.c 2006-07-21 10:07:27.000000000 +0200
+@@ -43,6 +43,11 @@
+ if (ret == -1) {
+ ubuf.machine[0] = '\0';
+ ubuf.sysname[0] = '\0';
++ } else {
++ char *p = ubuf.sysname;
++ while ((p = strchr(p, '\\'))) *p = '_';
++ p = ubuf.machine;
++ while ((p = strchr(p, '\\'))) *p = '_';
+ }
+
+ fake_name = g_getenv ("MONO_SHARED_HOSTNAME");
More information about the mono-bugs
mailing list