]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
wiper: use Posix_Access, not access.
authorVMware, Inc <>
Tue, 26 Apr 2011 20:24:09 +0000 (13:24 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Tue, 26 Apr 2011 20:24:09 +0000 (13:24 -0700)
This doesn't really feel right, since the MNTINFO struct is not
unicode-ized. But other parts of the code already did it, and
it shuts up the symbol checker.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/wiper/wiperPosix.c

index 21c49ff4ac59069a764e811f46fbdf2db2470956..824dc07aa47bbec8c09128e9e07b0e19ee5b75ad 100644 (file)
@@ -438,7 +438,7 @@ WiperPartitionFilter(WiperPartition *item,         // IN/OUT
          } else if (MNTINFO_MNT_IS_RO(mnt)) {
             comment = "Not writable.";
          }
-      } else if (access(MNTINFO_MNTPT(mnt), W_OK) != 0) {
+      } else if (Posix_Access(MNTINFO_MNTPT(mnt), W_OK) != 0) {
          comment = "Mount point not writable.";
       }