From: VMware, Inc <> Date: Tue, 26 Apr 2011 20:24:09 +0000 (-0700) Subject: wiper: use Posix_Access, not access. X-Git-Tag: 2011.04.25-402641~74 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74f643fca682c29afc265611cfc2ed632076cc80;p=thirdparty%2Fopen-vm-tools.git wiper: use Posix_Access, not access. 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 --- diff --git a/open-vm-tools/lib/wiper/wiperPosix.c b/open-vm-tools/lib/wiper/wiperPosix.c index 21c49ff4a..824dc07aa 100644 --- a/open-vm-tools/lib/wiper/wiperPosix.c +++ b/open-vm-tools/lib/wiper/wiperPosix.c @@ -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."; }