From: Al Viro <viro@ZenIV.linux.org.uk>
To: dongke di <didongke@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kern_path() returns error in kernel 4.4
Date: Mon, 13 Jun 2016 16:40:51 +0100 [thread overview]
Message-ID: <20160613154050.GV14480@ZenIV.linux.org.uk> (raw)
In-Reply-To: <CAN93O9pogTCwAwz=QWY19SnARUL=heP7EB7ENzxvNaA5MevNDQ@mail.gmail.com>
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...
prev parent reply other threads:[~2016-06-13 15:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-13 9:12 kern_path() returns error in kernel 4.4 dongke di
2016-06-13 15:40 ` Al Viro [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160613154050.GV14480@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=didongke@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox