summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2007-11-21 01:47:08 +0000
committerXin LI <delphij@FreeBSD.org>2007-11-21 01:47:08 +0000
commit5ef14f40eee9ddec65eaba45b18b4992dfd2c4f0 (patch)
tree50292904e39150de92a72d9cdd1d3763bfadd630
parent26beef6d6eac015d6597d7c5d05e714c940029f5 (diff)
Notes
-rw-r--r--sys/fs/tmpfs/tmpfs_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c
index 8adcf7a713a2..111d313d449c 100644
--- a/sys/fs/tmpfs/tmpfs_vfsops.c
+++ b/sys/fs/tmpfs/tmpfs_vfsops.c
@@ -231,7 +231,7 @@ tmpfs_mount(struct mount *mp, struct thread *td)
vfs_scanopt(mp->mnt_optnew, "uid", "%d", &root_uid) != 1)
root_uid = va.va_uid;
if (mp->mnt_cred->cr_ruid != 0 ||
- vfs_scanopt(mp->mnt_optnew, "mode", "%o", &root_mode) != 1)
+ vfs_scanopt(mp->mnt_optnew, "mode", "%ho", &root_mode) != 1)
root_mode = va.va_mode;
if(vfs_scanopt(mp->mnt_optnew, "inodes", "%d", &nodes_max) != 1)
nodes_max = 0;