Code Monkey home page Code Monkey logo

Comments (1)

patrickdk77 avatar patrickdk77 commented on May 31, 2024

Oh well, ignore the above, I wasn't thinking clear enough.
This patch actually works correctly.

--- postsrsd.c.orig 2014-07-05 23:44:54.361771774 -0400
+++ postsrsd.c 2014-07-05 23:45:59.544592549 -0400
@@ -234,6 +234,7 @@
struct passwd *pwd = NULL;
char secretbuf[1024], *secret = NULL;
char *tmp;

  • time_t ttime;
    srs_t _srs;
    struct pollfd fds[3];
    const char *_excludes;
    @@ -356,6 +357,11 @@

/* Open syslog now (NDELAY), because it may no longer reachable from chroot */
openlog (self, LOG_PID | LOG_NDELAY, LOG_MAIL);
+

  • /* Call localtime to load timezone info so syslog time is accurate */
  • ttime=time(NULL);
  • localtime(&ttime);
  • /* We also have to lookup the uid of the unprivileged user for the same reason. */
    if (user) {
    errno = 0;

from postsrsd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.