.. | .. |
---|
20 | 20 | #include <linux/uaccess.h> |
---|
21 | 21 | |
---|
22 | 22 | #include <linux/coda.h> |
---|
23 | | -#include <linux/coda_psdev.h> |
---|
24 | | - |
---|
| 23 | +#include "coda_psdev.h" |
---|
25 | 24 | #include "coda_linux.h" |
---|
26 | 25 | |
---|
27 | 26 | /* pioctl ops */ |
---|
.. | .. |
---|
64 | 63 | * Look up the pathname. Note that the pathname is in |
---|
65 | 64 | * user memory, and namei takes care of this |
---|
66 | 65 | */ |
---|
67 | | - if (data.follow) |
---|
68 | | - error = user_path(data.path, &path); |
---|
69 | | - else |
---|
70 | | - error = user_lpath(data.path, &path); |
---|
71 | | - |
---|
| 66 | + error = user_path_at(AT_FDCWD, data.path, |
---|
| 67 | + data.follow ? LOOKUP_FOLLOW : 0, &path); |
---|
72 | 68 | if (error) |
---|
73 | 69 | return error; |
---|
74 | 70 | |
---|