[Box Backup-dev] COMMIT r634 - box/chris/general/lib/win32

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Thu Jul 6 21:53:59 BST 2006


Author: chris
Date: 2006-07-06 20:53:57 +0000 (Thu, 06 Jul 2006)
New Revision: 634

Modified:
   box/chris/general/lib/win32/emu.h
Log:
* emu.h
- Removed {get,set}*uid stubs which paper over the cracks on Win32. The
  code which uses these functions should be fixed to work on Win32 instead.
- Removed hard-coded version for MSVC, should use BoxVersion.h instead


Modified: box/chris/general/lib/win32/emu.h
===================================================================
--- box/chris/general/lib/win32/emu.h	2006-07-06 20:51:13 UTC (rev 633)
+++ box/chris/general/lib/win32/emu.h	2006-07-06 20:53:57 UTC (rev 634)
@@ -151,33 +151,6 @@
 	}
 #endif
 
-//I do not perceive a need to change the user or group on a backup client
-//at any rate the owner of a service can be set in the service settings
-inline int setegid(int)
-{
-	return true;
-}
-inline int seteuid(int)
-{
-	return true;
-}
-inline int setgid(int)
-{
-	return true;
-}
-inline int setuid(int)
-{
-	return true;
-}
-inline int getgid(void)
-{
-	return 0;
-}
-inline int getuid(void)
-{
-	return 0;
-}
-
 #ifndef PATH_MAX
 #define PATH_MAX MAX_PATH
 #endif
@@ -214,11 +187,6 @@
 	typedef int socklen_t;
 #endif
 
-// I (re-)defined here for the moment; has to be removed later !!! 
-#ifndef BOX_VERSION
-#define BOX_VERSION "0.10_msvc"
-#endif
-
 #define S_IRGRP S_IWRITE
 #define S_IWGRP S_IREAD
 #define S_IROTH S_IWRITE | S_IREAD




More information about the Boxbackup-dev mailing list