Search
j0ke.net Open Build Service
>
Projects
>
virtualization
:
VMware
>
open-vm-tools
> open-vm-tools-2008.08.08-fix-Werror.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File open-vm-tools-2008.08.08-fix-Werror.patch of Package open-vm-tools
--- guestd/foundryToolsDaemon.c +++ guestd/foundryToolsDaemon.c @@ -1381,7 +1381,8 @@ * from the contents of /etc/fstab, and invoke custom mount programs like the * one needed for HGFS. */ - system("mount -a -t vmhgfs"); + int systemResult; + systemResult = system("mount -a -t vmhgfs"); #endif /* --- guestd/main.c +++ guestd/main.c @@ -1225,6 +1225,7 @@ static Bool GuestdAlreadyRunning(char const *pidFileName) // IN { + int result; FILE *pidFile = NULL; pid_t pid = 0; @@ -1232,7 +1233,7 @@ pidFile = fopen(pidFileName, "r"); if (pidFile) { - fscanf(pidFile, "%"FMTPID"\n", &pid); + result = fscanf(pidFile, "%"FMTPID"\n", &pid); fclose(pidFile); /* --- lib/appUtil/appUtilX11.c +++ lib/appUtil/appUtilX11.c @@ -709,10 +709,13 @@ if (cwd) { char cbuf[PATH_MAX]; - getcwd(cbuf, sizeof cbuf); - chdir(cwd); + int result; + char *cresult; + + cresult = getcwd(cbuf, sizeof cbuf); + result = chdir(cwd); ctmp = Posix_RealPath(appName); - chdir(cbuf); + result = chdir(cbuf); return ctmp; } --- lib/system/systemLinux.c +++ lib/system/systemLinux.c @@ -358,7 +358,8 @@ cmd = "shutdown -h now"; #endif } - system(cmd); + int systemResult; + systemResult = system(cmd); } @@ -593,7 +594,8 @@ * won't treat EPIPE as an error, because we'd like to carry on with * our own life, even if our parent -did- abandon us. ;_; */ - write(fds[1], &buf, sizeof buf); + int result; + result = write(fds[1], &buf, sizeof buf); close(fds[1]); if (!nochdir && (chdir("/") == -1)) { --- vmware-user/foundryToolsDaemon.c +++ vmware-user/foundryToolsDaemon.c @@ -1381,7 +1381,8 @@ * from the contents of /etc/fstab, and invoke custom mount programs like the * one needed for HGFS. */ - system("mount -a -t vmhgfs"); + int systemResult; + systemResult = system("mount -a -t vmhgfs"); #endif /*