Browse code

shared/optparser.c: handle --user/-u in freshclam (bb#1323)

git-svn: trunk@4575

Tomasz Kojm authored on 2008/12/23 06:05:53
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Mon Dec 22 22:16:40 CET 2008 (tk)
2
+---------------------------------
3
+ * shared/optparser.c: handle --user/-u in freshclam (bb#1323)
4
+
1 5
 Mon Dec 22 16:12:27 CET 2008 (tk)
2 6
 ---------------------------------
3 7
  * shared/optparser.c: fix small memleak
... ...
@@ -237,7 +237,7 @@ static const struct clam_option {
237 237
     /* FIXME: drop this entry and use LogFile */
238 238
     { "UpdateLogFile", "log", 'l', OPT_STRING, NULL, -1, NULL, 0, OPT_FRESHCLAM, "Save all reports to a log file.", "/var/log/freshclam.log" },
239 239
 
240
-    { "DatabaseOwner", NULL, 0, OPT_STRING, NULL, -1, CLAMAVUSER, 0, OPT_FRESHCLAM, "When started by root freshclam will drop privileges and switch to the user\ndefined in this option.", CLAMAVUSER },
240
+    { "DatabaseOwner", "user", 'u', OPT_STRING, NULL, -1, CLAMAVUSER, 0, OPT_FRESHCLAM, "When started by root freshclam will drop privileges and switch to the user\ndefined in this option.", CLAMAVUSER },
241 241
 
242 242
     { "Checks", "checks", 'c', OPT_NUMBER, MATCH_NUMBER, 12, NULL, 0, OPT_FRESHCLAM, "This option defined how many times daily freshclam should check for\na database update.", "24" },
243 243