Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 1 Jan 2014 19:42:47 +0000
From: Raphael Cohn <>
Subject: musl & strndupa?


I'm trying to compile 'audit' (aka libaudit, auditd, etc - from version 2.3.2). Using musl

The file 'src/ausearch-lol.c' uses a reference to 'strndupa', which I
presume is an alloca version of strndup, and presumably a _GNU_SOURCE
feature. I can't seem to see a definition for it in musl, although strdupa
exists in string.h (Indeed, suggests as

Is this intentional? If so, what would anyone suggest as a work around? My
guess would be  #define strndupa(x, t) strncpy(alloca(strlen(x)+1),x,t)
but I'd like a second opinion...


Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.