summaryrefslogtreecommitdiff
path: root/sysutils/bacula/files/patch-dird.c
blob: bd5efe357eea08b50da410abd3ba1269d763a0cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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); */