Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1420644 > unrolled thread
| Started by | dongke di <didongke@gmail.com> |
|---|---|
| First post | 2016-06-13 11:20 +0200 |
| Last post | 2016-06-13 17:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
kern_path() returns error in kernel 4.4 dongke di <didongke@gmail.com> - 2016-06-13 11:20 +0200
Re: kern_path() returns error in kernel 4.4 Al Viro <viro@ZenIV.linux.org.uk> - 2016-06-13 17:50 +0200
| From | dongke di <didongke@gmail.com> |
|---|---|
| Date | 2016-06-13 11:20 +0200 |
| Subject | kern_path() returns error in kernel 4.4 |
| Message-ID | <rJwci-4dU-3@gated-at.bofh.it> |
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 ?
[toc] | [next] | [standalone]
| From | Al Viro <viro@ZenIV.linux.org.uk> |
|---|---|
| Date | 2016-06-13 17:50 +0200 |
| Message-ID | <rJChI-8go-25@gated-at.bofh.it> |
| In reply to | #1420644 |
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...
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web