UMSDOS symlink fix

Delbert Matlock (Delbert@Matlock.com)
Fri, 3 Aug 2001 23:46:00 -0400


Enclosed is a one line fix for symlinks under the UMSDOS filesystem. Under
stock 2.4.7 (and 2.4.7-ac4), if you create a symlink the last letter of the
original file will be left off the link. This will fix it.

Now, if I can just get the blasted thing to mount as root.

-- Delbert Matlock
-- Delbert@Matlock.com
-- http://delbert.matlock.com/

diff -u -r linux.orig/fs/umsdos/namei.c linux/fs/umsdos/namei.c
--- linux.orig/fs/umsdos/namei.c Fri Feb 9 14:29:44 2001
+++ linux/fs/umsdos/namei.c Fri Aug 3 21:01:42 2001
@@ -491,7 +491,7 @@
goto out;
}

- len = strlen (symname);
+ len = strlen (symname) + 1;
ret = block_symlink(dentry->d_inode, symname, len);
if (ret < 0)
goto out_unlink;

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