Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6334

O_PATH equivalent in Linux kernel before 2.6.39?

$
0
0

In latest kernel I use the following code to operate the inode of a symlink file:

file = filp_open(filename, O_PATH | O_NOFOLLOW, 0);

If I don't add O_PATH, filp_open would fail with -ELOOP.

On Linux kernel 2.6.32, O_PATH is unavailable, what should I use instead?


Viewing all articles
Browse latest Browse all 6334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>