The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / openvmtools / 0004-uclibc_secure_getenv.patch
diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/openvmtools/0004-uclibc_secure_getenv.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/openvmtools/0004-uclibc_secure_getenv.patch
new file mode 100644 (file)
index 0000000..28cfdc4
--- /dev/null
@@ -0,0 +1,18 @@
+lib/misc/idLinux.c: add uClibc support
+
+uClibc does not have a secure_getenv function, so we use the
+Android method.
+
+Signed-off-by: Karoly Kasza <kaszak@gmail.com>
+
+--- open-vm-tools-9.10.0-2476743.orig/lib/misc/idLinux.c       2015-03-29 12:19:30.776922510 +0200
++++ open-vm-tools-9.10.0-2476743/lib/misc/idLinux.c    2015-03-29 12:30:30.000000000 +0200
+@@ -997,7 +997,7 @@
+ static Bool
+ IdIsSetUGid(void)
+ {
+-#if defined(__ANDROID__)
++#if defined(__ANDROID__) || defined(__UCLIBC__)
+    /* Android does not have a secure_getenv, so be conservative. */
+    return TRUE;
+ #else