[BUG] 2.3.99 pre4-3 - chdir does not follow symlinks

From: Tony Lofthouse (tonylo@sco.COM)
Date: Mon Apr 03 2000 - 16:16:48 EST


I haven't seen this mentioned, but pre4-3 appears to break chdir. namei used
to be called by sys_chdir so it followed symlinks. The following change
fixes this.

--- linux/fs/open.c Mon Apr 3 20:25:50 2000
+++ 2399p4-work/fs/open.c Tue Apr 4 00:03:42 2000
@@ -343,7 +343,7 @@
        if (IS_ERR(name))
                goto out;

- dentry = lookup_dentry(name, NULL, 0);
+ dentry = lookup_dentry(name, NULL, LOOKUP_FOLLOW);
        putname(name);
        error = PTR_ERR(dentry);
        if (IS_ERR(dentry))

Regards
- Tony

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:10 EST