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 | ff7be39f3df8234e9f64b9098c76493cf0977439 (patch) | |
tree | 82f58e8ab3eb85d345fa067dcaf2114f00734028 | |
parent | 86935e7331b64d1ef3234a01ddca08be336162fb (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); |