port some Backfire and Attitude Adjustment support to Barrier Breaker
[openwrt-14.07/.git] / package / network / config / netifd / patches / 005-openat.patch
1 --- a/system-linux.c    2016-07-12 22:51:38.000000000 +0300
2 +++ b/system-linux.c    2016-07-13 11:21:26.820071423 +0300
3 @@ -1103,7 +1103,7 @@ read_string_file(int dir_fd, const char
4         char *c;
5         int fd;
6  
7 -       fd = openat(dir_fd, file, O_RDONLY);
8 +       fd = open(file, O_RDONLY);
9         if (fd < 0)
10                 return false;
11