Ticket #42845: daemon-0.6.4-ignore-strlcpy-strlcat.patch

File daemon-0.6.4-ignore-strlcpy-strlcat.patch, 1.0 KB (added by posita (Matt Bogosian), 11 years ago)

fix patch

  • daemon-0.6.4

    diff -Naur daemon-0.6.4.old/daemon.c daemon-0.6.4/daemon.c
    old new  
    651651#define _NETBSD_SOURCE /* For CEOF, chroot() on NetBSD-5.0.2 */
    652652#endif
    653653
     654#include <config.h>
     655
    654656#include <slack/std.h>
    655657
    656658#include <pwd.h>
  • libslack/str.h

    diff -Naur daemon-0.6.4.old/libslack/str.h daemon-0.6.4/libslack/str.h
    old new  
    254254int oct(const char *str);
    255255int strcasecmp(const char *s1, const char *s2);
    256256int strncasecmp(const char *s1, const char *s2, size_t n);
     257
     258#ifndef HAVE_STRLCPY
    257259size_t strlcpy(char *dst, const char *src, size_t size);
     260#endif
     261
     262#ifndef HAVE_STRLCAT
    258263size_t strlcat(char *dst, const char *src, size_t size);
     264#endif
     265
    259266char *cstrcpy(char *dst, const char *src);
    260267char *cstrcat(char *dst, const char *src);
    261268char *cstrchr(const char *str, int c);