Skip to contentSkip to conversation

UMSDOS symlink fix

PATCH Delbert Matlock 2 participants 2 messages Aug 4, 2001

lore
Share & tools
lore
#0 lore raw

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
-- [email protected]
-- http://delbert.matlock.com/

fs/umsdos/namei.c +1 -1
diff -u -r linux.orig/fs/umsdos/namei.c linux/fs/umsdos/namei.c
@@ -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;
#1 lore raw
Quoted 9 lines · Delbert Matlock

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
-- [email protected]
-- http://delbert.matlock.com/

I'm going to take this opportunity to slip in a small question.

Which is faster, UMSDOS or VFAT?

Signature · 1 line
Ignacio Vazquez-Abrams  <[email protected]>