Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 232084 | Differences between
and this patch

Collapse All | Expand All

(-)/var/tmp/portage/net-misc/dhcdbd-3.0/work/dhcdbd-3.0/src/dhcdbd.c (-1 / +1 lines)
Lines 2813-2819 Link Here
2813
        if (dhcdbd_daemonize && (daemon (0, 0) == -1))
2813
        if (dhcdbd_daemonize && (daemon (0, 0) == -1))
2814
                return errno;
2814
                return errno;
2815
               unlink (DHCDBD_PID_FILE);
2815
               unlink (DHCDBD_PID_FILE);
2816
        if ((fd = open (DHCDBD_PID_FILE, O_WRONLY | O_CREAT)) == -1)
2816
        if ((fd = open (DHCDBD_PID_FILE, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR)) == -1)
2817
                exit (errno);
2817
                exit (errno);
2818
        l = sprintf (path, "%u", getpid ());
2818
        l = sprintf (path, "%u", getpid ());
2819
        l = write (fd, path, l);
2819
        l = write (fd, path, l);

Return to bug 232084