X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fexec.c;h=055378d2513e87359b899cafc2b981e1bd392407;hb=02829f73774fa1f6c0a28f4018caaa7c94399c4a;hp=62b40af68cc4e40da9c749ce36bef9816894a003;hpb=d65177c1ae7f085723154105c5dc8d9e16ae8265;p=linux-2.6 diff --git a/fs/exec.c b/fs/exec.c index 62b40af68c..055378d251 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -477,7 +477,7 @@ struct file *open_exec(const char *name) int err; struct file *file; - err = path_lookup_open(name, LOOKUP_FOLLOW, &nd, FMODE_READ); + err = path_lookup_open(AT_FDCWD, name, LOOKUP_FOLLOW, &nd, FMODE_READ); file = ERR_PTR(err); if (!err) {