[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mint 1.10: biosfs.c -- bios_getxattr()



>From: Juergen Lock <nox@jelal.north.de>
>Nicholas S Castellano writes:
>> In bios_getxattr() it's not a good idea to return the attributes of the
>> file to which a fake device currently is pointing.  Doing so messes
> looks good, except that now the inodes are all equal... :)

Oops!

Add this and it should solve that problem:

--- 1.10.1.4	1994/02/24 15:12:28
+++ biosfs.c	1994/03/04 10:24:08
@@ -380,7 +380,9 @@
 			majdev = FAKE_RDEV;
 			mindev = ((int)fc->aux) & 0x00ff;
 			set_xattr(xattr, S_IFCHR | DEFAULT_MODE, majdev|mindev);
-#ifdef FOLLOW_XATTR_CHAIN
+#ifndef FOLLOW_XATTR_CHAIN
+			xattr->index = fc->index;
+#else
 		}
 #endif
 	} else if (b->device == &fakedev) {
@@ -394,7 +396,9 @@
 			majdev = FAKE_RDEV;
 			mindev = ((int)b->private) & 0x00ff;
 			set_xattr(xattr, S_IFCHR|DEFAULT_MODE, majdev|mindev);
-#ifdef FOLLOW_XATTR_CHAIN
+#ifndef FOLLOW_XATTR_CHAIN
+			xattr->index = fc->index;
+#else
 		}
 #endif
 	} else {


--
entropy -- it's not just a good idea, it's the second law.
Personal mail:      entropy@gnu.ai.mit.edu
MiNT library mail:  entropy@terminator.rs.itd.umich.edu
"what do you have against octal?" -jrb