Skip to contentSkip to conversation

prot_hsymlinks.c: Define _GNU_SOURCE which is required for O_DIRECTORY

PATCH In review Markos Chandras 2 participants 2 messages May 15, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 prot_hsymlinks.c: Define _GNU_SOURCE which is required for O_DIRECTORY

From: Markos Chandras <[email protected]>

O_DIRECTORY is only available if _GNU_SOURCE is defined in uClibc toolchains.

This is similar to 0d0c695c8c6657710d1a8ecb4f1264dcd405276b "open11.c: Define _GNU_SOURCE which is required for O_DIRECTORY"

---
 testcases/kernel/security/prot_hsymlinks/prot_hsymlinks.c | 1 +
 1 file changed, 1 insertion(+)
testcases/kernel/security/prot_hsymlinks/prot_hsymlinks.c +1 -0
index 8feef99..1eec0f9 100644
@@ -31,6 +31,7 @@
  * of the file or he doesn't have write access to the file.
  */
 
+#define _GNU_SOURCE
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <pwd.h>
Signature · 14 lines
1.8.2.1



------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw

Hi!

Quoted 7 lines

O_DIRECTORY is only available if _GNU_SOURCE is defined in uClibc toolchains.

This is similar to 0d0c695c8c6657710d1a8ecb4f1264dcd405276b "open11.c: Define _GNU_SOURCE which is required for O_DIRECTORY"

Commited, thanks.

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list