Re: path_walk errno: -2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,

Oh .. ok thanx.

I gave a valid path name like eg: /etc/rc.local. It
still gave me the error -2.

Is /proc some chrooted path or something ?? Can't we
walk thru the filesystem from /proc ?? are there any
restrictions of any sort??

TIA

Karthik


--- Chris Wright <chris@wirex.com> wrote:
> * Karthik M (k_mohanas@yahoo.com) wrote:
> 
> <snipped code>
> 
> > The path_walk() returns an error code number -2.
> > 
> > What does error code -2 mean ?? where could i find
> > more information about what the different error
> number
> > mean ?
> 
> -2 is ENOENT.  you can find this in
> include/asm/errno.h.  LOOKUP_POSITIVE
> means path_walk will not give you back a negative
> dentry, so if the file
> doesn't exist you'll get ENOENT.
> 
> cheers,
> -chris
> -- 
> Linux Security Modules     http://lsm.immunix.org   
>  http://lsm.bkbits.net
> --
> Kernelnewbies: Help each other learn about the Linux
> kernel.
> Archive:      
> http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux