#endif
/* for O_DIRECTORY and O_DIRECT */
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <stdio.h>
#include <sys/types.h>
}
strncpy(cloned_flags, optarg, strlen(optarg)+1);
- for (tmp = strtok(optarg, ":|"); tmp;
+ for (tmp = strtok(cloned_flags, ":|"); tmp;
tmp = strtok(NULL, ":|")) {
int i = 0;
#ifdef DEBUG
exit(-1);
}
}
+ free(cloned_flags);
#ifdef DEBUG
printf("flags = %x\n", flags);
#endif