View | Details | Raw Unified | Return to bug 196108
Collapse All | Expand All

(-)emulators/open-vm-tools/files/patch-toolbox__toolboxcmd-shrink.c (+11 lines)
Line 0 Link Here
1
--- toolbox/toolboxcmd-shrink.c.orig	2013-09-23 17:51:10.000000000 +0200
2
+++ toolbox/toolboxcmd-shrink.c	2014-11-25 17:57:44.000000000 +0100
3
@@ -391,7 +391,7 @@ ShrinkDoWipeAndShrink(char *mountPoint, 
4
     * Verify that wiping/shrinking are permitted before going through with the
5
     * wiping operation.
6
     */
7
-   if (!ShrinkGetWiperState() == WIPER_ENABLED && !Wiper_IsWipeSupported(part)) {
8
+   if (ShrinkGetWiperState() != WIPER_ENABLED && !Wiper_IsWipeSupported(part)) {
9
       g_debug("%s cannot be wiped / shrunk\n", mountPoint);
10
       ToolsCmd_PrintErr("%s",
11
                         SU_(disk.shrink.disabled, SHRINK_DISABLED_ERR));

Return to bug 196108