diff options
author | Jeremie Koenig <jk@jk.fr.eu.org> | 2010-09-01 10:49:11 +0000 |
---|---|---|
committer | Thomas Schwinge <thomas@schwinge.name> | 2010-09-14 17:09:47 +0200 |
commit | b0db9bc55ce9b66d0fba511239c278d1a257a9ef (patch) | |
tree | 165d1e0d1e0393512cfe5fae62a6ab896ffc5b7d | |
parent | 8dc9884fc74243a6810fdcac603e1941962b666a (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |