Follow-up for r3403: builds again against kernel 2.6.27.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3405 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-04-25 10:01:18 +00:00
parent 3231e80995
commit dc99b958ec

View File

@@ -908,11 +908,11 @@ out:
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) \
&& LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 26)
&& LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 27)
static int kern_path(const char *name, unsigned int flags, struct path *path)
{
struct nameidata nd;
int res = do_path_lookup(AT_FDCWD, name, flags, &nd);
int res = path_lookup(name, flags, &nd);
if (!res)
*path = nd.path;
return res;