#include <sys/wait.h>
#include <libgen.h>
#include <signal.h>
+#include <stdlib.h>
#define ENSC_WRAPPERS_FCNTL 1
#define ENSC_WRAPPERS_UNISTD 1
transformOptionList(struct MountInfo *info, size_t UNUSED *col)
{
char const * ptr = info->data;
+ char * data = malloc(strlen(info->data));
+ char * dst = data;
do {
char const * pos = strchr(ptr, ',');
info->mask |= opt->mask;
info->xflag |= opt->xflag;
}
+ else {
+ if (dst != data)
+ *(dst++) = ',';
+ strncpy(dst, ptr, pos-ptr);
+ dst += pos - ptr;
+ *dst = '\0';
+ }
if (*pos!='\0')
ptr = pos+1;
} while (*ptr!='\0');
+ info->data = data;
return true;
}