lkml.org 
[lkml]   [2016]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kern_path() returns error in kernel 4.4
On Mon, Jun 13, 2016 at 05:12:27PM +0800, dongke di wrote:
> struct path path;
> int r = kern_path( "/tmp/abc.txt", LOOKUP_FOLLOW | LOOKUP_PARENT, &path );
>
> The file abc.txt does not exist.
>
> On Ubuntu 14.04 ( kernel 3.13 ), r is zero (succed).
> On Ubuntu 16.04 ( kernel 4.4 ), r is -2 ( fail).
>
> Is it a bug or other else ?

It is - in the code that passes LOOKUP_PARENT to kern_path(). What are
is it trying to do there? Need more context...

\
 
 \ /
  Last update: 2016-06-13 18:21    [W:0.050 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site