Out of openat flag space

Ricardo Ribalda Delgado ricardo.ribalda at gmail.com
Wed Apr 8 04:20:21 EDT 2015


I think there is a bug in

+#define O_BENEATH 080000000

In c, when a number starts with 0, it is an octal number not an hexa
(0x number). Octal numbers cannot have an 8!

ricardo at neopili:/tmp$ cat  kk.c
int main(int argc, char **argv){
return 008;
}
ricardo at neopili:/tmp$ gcc kk.c
kk.c: In function ‘main’:
kk.c:2:9: error: invalid digit "8" in octal constant
  return 008;
         ^
-- 
Ricardo Ribalda



More information about the Kernelnewbies mailing list