search for: 622ee7ea

Displaying 3 results from an estimated 3 matches for "622ee7ea".

2020 Aug 18
1
Re: [PATCH nbdkit 3/9] server: Add general replacements for missing functions using LIBOBJS.
...alog. > + > +#else /* !WIN32 */ > +#error "no replacement openlog is available on this platform" > +#endif > + > +#endif /* !HAVE_SYSLOG_H */ > diff --git a/common/replacements/realpath.c b/common/replacements/realpath.c > new file mode 100644 > index 00000000..622ee7ea > --- /dev/null > +++ b/common/replacements/realpath.c > +++ b/common/replacements/strndup.c > + > +char * > +strndup(const char *s, size_t n) > +{ > + size_t len = strlen (s); You _must_ use strnlen here. Otherwise, a user that passes in a pointer to bytes that are bo...
2020 Aug 18
0
[PATCH nbdkit 3/9] server: Add general replacements for missing functions using LIBOBJS.
...vent_source = RegisterEventSource (NULL, ident); +} + +#else /* !WIN32 */ +#error "no replacement openlog is available on this platform" +#endif + +#endif /* !HAVE_SYSLOG_H */ diff --git a/common/replacements/realpath.c b/common/replacements/realpath.c new file mode 100644 index 00000000..622ee7ea --- /dev/null +++ b/common/replacements/realpath.c @@ -0,0 +1,81 @@ +/* nbdkit + * Copyright (C) 2019 Red Hat Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met:...
2020 Aug 18
15
[PATCH nbdkit 0/9] Port to Windows.
Also available here: https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw This is the port to Windows using native Windows APIs (not MSYS or Cygwin). This patch series is at the point where it basically now works. I can run the server with the memory plugin, and access it remotely using guestfish, creating filesystems and so on without any apparent problems. Nevertheless there are many