summaryrefslogtreecommitdiff
path: root/src/miav.cc
diff options
context:
space:
mode:
authordeva <deva>2005-06-19 11:44:14 +0000
committerdeva <deva>2005-06-19 11:44:14 +0000
commit52fd913be8b044f1d064973c53b4467e5bd153fe (patch)
tree807ac3d85c9af0fe81bd88c22f6fe32c3c7af25b /src/miav.cc
parent60053525996c751ea9cdeddebbea8fa98e0c23a3 (diff)
Cleaned up a log of logging.
Fixed server queue (shouldn't happen). Added user and group lookup.
Diffstat (limited to 'src/miav.cc')
-rw-r--r--src/miav.cc16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/miav.cc b/src/miav.cc
index 0f2feb3..9dc3552 100644
--- a/src/miav.cc
+++ b/src/miav.cc
@@ -31,6 +31,11 @@
/*
* $Log$
+ * Revision 1.15 2005/06/19 11:44:14 deva
+ * Cleaned up a log of logging.
+ * Fixed server queue (shouldn't happen).
+ * Added user and group lookup.
+ *
* Revision 1.14 2005/06/14 12:29:40 deva
* Incorporated the use of the Info object everywhere... also using the log functionality.
*
@@ -72,7 +77,6 @@
#include "miav.h"
#endif /* USE_GUI */
-
#include "miav_daemon.h"
#include "miav_config.h"
@@ -128,11 +132,11 @@ int server(int argc, char *argv[])
MiavDaemon daemon;
MiavConfig cfg(ETC"/miav.conf", NULL);
-
- int uid = cfg.readInt("server_uid");
- int gid = cfg.readInt("server_gid");
-
- return daemon.run(uid, gid);
+
+ string *user = cfg.readString("server_user");
+ string *group = cfg.readString("server_group");
+
+ return daemon.run(user->c_str(), group->c_str());
}
#include "debug.h"