summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Koenig <jk@jk.fr.eu.org>2010-09-01 10:49:11 +0000
committerThomas Schwinge <thomas@schwinge.name>2010-09-14 17:09:47 +0200
commitb0db9bc55ce9b66d0fba511239c278d1a257a9ef (patch)
tree165d1e0d1e0393512cfe5fae62a6ab896ffc5b7d
parent8dc9884fc74243a6810fdcac603e1941962b666a (diff)
Use 2 instead of 42 as the parent inode number
* procfs.c (procfs_make_ino): Use 2 rather than 42 as a temporary hack, since 2 is the root's inode with ext2fs.
-rw-r--r--procfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procfs.c b/procfs.c
index ee52de7..ae5a676 100644
--- a/procfs.c
+++ b/procfs.c
@@ -114,7 +114,7 @@ procfs_make_ino (struct node *np, const char *filename)
if (! strcmp (filename, "."))
return np->nn_stat.st_ino;
if (! strcmp (filename, ".."))
- return np->nn->parent ? np->nn->parent->nn_stat.st_ino : /* FIXME: */ 42;
+ return np->nn->parent ? np->nn->parent->nn_stat.st_ino : /* FIXME: */ 2;
assert (sizeof np->nn_stat.st_ino > sizeof x);
memcpy (x, &np->nn_stat.st_ino, sizeof x);