Browse code

Fixing GOSC counter bug

Kumar Kaushik authored on 2015/09/02 07:04:20
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,17 @@
0
+diff -ru gosc-scripts/imc-shell/imgcust-scripts/CustomizationUtils.sh gosc-scripts-modify/imc-shell/imgcust-scripts/CustomizationUtils.sh
1
+--- gosc-scripts/imc-shell/imgcust-scripts/CustomizationUtils.sh	2015-09-01 14:19:34.538883000 -0700
2
+@@ -803,11 +803,11 @@
3
+       local ser_query=$service_tag$i
4
+       local cmd_cnt=$(ConfigFile_GetServiceFileCommandCount $ser_query)
5
+       if [ "$cmd_cnt" -gt 0 ]; then
6
+-        for j in $(seq 1 $ser_cnt); do
7
++        for j in $(seq 1 $cmd_cnt); do
8
+           
9
+           local cmd_query=$command_tag$j
10
+           local commd=$(ConfigFile_GetServiceFileCommand $ser_query $cmd_query)
11
+-          Exec '$commd'
12
++          Exec "$commd"
13
+         done
14
+       fi
15
+     done
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Usermode tools for VmWare virts
2 2
 Name:		open-vm-tools
3 3
 Version:	10.0.0
4
-Release:	6%{?dist}
4
+Release:	7%{?dist}
5 5
 License:	LGPLv2+
6 6
 URL:		https://github.com/vmware/open-vm-tools
7 7
 Group:		Applications/System
... ...
@@ -17,6 +17,7 @@ Patch2:         GOSC-VCA.patch
17 17
 Patch3:         GOSC-return-code.patch
18 18
 Patch4:         GOSC-NFS-MOUNT.patch
19 19
 Patch5:         skipreboot.patch
20
+Patch6:         GOSC-counterBug.patch
20 21
 BuildRequires: 	glib-devel
21 22
 BuildRequires: 	xerces-c-devel
22 23
 BuildRequires: 	xml-security-c-devel
... ...
@@ -44,6 +45,7 @@ VmWare virtualization user mode tools
44 44
 %patch3 -p0
45 45
 %patch4 -p0
46 46
 %patch5 -p1
47
+%patch6 -p0
47 48
 %build
48 49
 touch ChangeLog
49 50
 autoreconf -i
... ...
@@ -102,6 +104,8 @@ rm -f /sbin/mount.vmhgfs
102 102
 
103 103
 
104 104
 %changelog
105
+*       Tue Sep 01 2015 Kumar Kaushik <kaushikk@vmware.com> 10.0.0-7
106
+-       Fixing GOSC counter bug.
105 107
 *       Wed Aug 26 2015 Kumar Kaushik <kaushikk@vmware.com> 10.0.0-6
106 108
 -       Avoiding reboot after successful customization.
107 109
 *       Tue Aug 25 2015 Kumar Kaushik <kaushikk@vmware.com> 10.0.0-5