All of lore.kernel.org
 help / color / mirror / Atom feed
* UMSDOS symlink fix
@ 2001-08-04  3:46 Delbert Matlock
  2001-08-04  4:54 ` Ignacio Vazquez-Abrams
  0 siblings, 1 reply; 2+ messages in thread
From: Delbert Matlock @ 2001-08-04  3:46 UTC (permalink / raw)
  To: linux-kernel

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;


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-04  4:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-04  3:46 UMSDOS symlink fix Delbert Matlock
2001-08-04  4:54 ` Ignacio Vazquez-Abrams

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.