View | Details | Raw Unified | Return to bug 54947
Collapse All | Expand All

(-)a/src/main.c (+4 lines)
Lines 23-28 Link Here
23
23
24
#include <glib/gi18n.h>
24
#include <glib/gi18n.h>
25
#include <glib-unix.h>
25
#include <glib-unix.h>
26
#include <unistd.h>
26
27
27
#include <systemd/sd-daemon.h>
28
#include <systemd/sd-daemon.h>
28
29
Lines 122-127 get_clock (void) Link Here
122
int
123
int
123
main (int argc, char *argv[])
124
main (int argc, char *argv[])
124
{
125
{
126
  int rc = setegid(getgid()); 
127
  if (rc < 0)
128
    g_warning("failed to drop egid in the start");
125
  g_autoptr (GOptionContext) opt_context = NULL;
129
  g_autoptr (GOptionContext) opt_context = NULL;
126
  g_autoptr (GError) err = NULL;
130
  g_autoptr (GError) err = NULL;
127
  gboolean unlocked = FALSE, locked = FALSE, version = FALSE;
131
  gboolean unlocked = FALSE, locked = FALSE, version = FALSE;

Return to bug 54947