[Box Backup-commit] COMMIT r1414 - box/chris/merge/lib/win32
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Sat Mar 10 19:12:57 GMT 2007
Author: chris
Date: 2007-03-10 19:12:57 +0000 (Sat, 10 Mar 2007)
New Revision: 1414
Modified:
box/chris/merge/lib/win32/emu.h
Log:
Group remaining set*id() and get*id() functions. Improve comments about
why they are being retained. (refs #3, related to [634])
Modified: box/chris/merge/lib/win32/emu.h
===================================================================
--- box/chris/merge/lib/win32/emu.h 2007-03-10 19:09:09 UTC (rev 1413)
+++ box/chris/merge/lib/win32/emu.h 2007-03-10 19:12:57 UTC (rev 1414)
@@ -83,12 +83,6 @@
void InitTimer(void);
void FiniTimer(void);
-inline int geteuid(void)
-{
- //lets pretend to be root!
- return 0;
-}
-
struct passwd {
char *pw_name;
char *pw_passwd;
@@ -147,8 +141,9 @@
return 0;
}
-//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
+// Windows and Unix owners and groups are pretty fundamentally different.
+// Ben prefers that we kludge here rather than litter the code with #ifdefs.
+// Pretend to be root, and pretend that set...() operations succeed.
inline int setegid(int)
{
return true;
@@ -173,6 +168,10 @@
{
return 0;
}
+inline int geteuid(void)
+{
+ return 0;
+}
#ifndef PATH_MAX
#define PATH_MAX MAX_PATH
More information about the Boxbackup-commit
mailing list