summaryrefslogtreecommitdiff
path: root/sysutils/bacula/files/patch-dird.c
diff options
context:
space:
mode:
authorLars Koeller <lkoeller@FreeBSD.org>2004-01-05 19:25:01 +0000
committerLars Koeller <lkoeller@FreeBSD.org>2004-01-05 19:25:01 +0000
commit5a79459e6e08105e888e68463e3b9a6a48068853 (patch)
treec56a65a9f154ad4a924185fb9de36619d87af1b1 /sysutils/bacula/files/patch-dird.c
parent- Portlint whitespace (diff)
o) Upgrade to version 1.32f
o) Now bacula runs with dropped down permissions as user bacula -> Please reserve UID 910 for this user
Diffstat (limited to 'sysutils/bacula/files/patch-dird.c')
-rw-r--r--sysutils/bacula/files/patch-dird.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysutils/bacula/files/patch-dird.c b/sysutils/bacula/files/patch-dird.c
new file mode 100644
index 000000000000..bd5efe357eea
--- /dev/null
+++ b/sysutils/bacula/files/patch-dird.c
@@ -0,0 +1,14 @@
+--- src/dird/dird.c 27 Dec 2003 13:14:12 -0000 1.41
++++ src/dird/dird.c 2 Jan 2004 17:21:21 -0000 1.42
+@@ -197,10 +197,10 @@
+ init_stack_dump(); /* grab new pid */
+ }
+
+- drop(uid, gid); /* reduce priveleges if requested */
+-
+ /* Create pid must come after we are a daemon -- so we have our final pid */
+ create_pid_file(director->pid_directory, "bacula-dir", director->DIRport);
++
++ drop(uid, gid); /* reduce priveleges if requested */
+
+ /* signal(SIGHUP, reload_config); */