diff options
author | phk <phk@FreeBSD.org> | 2001-11-03 16:53:24 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-11-03 16:53:24 +0000 |
commit | b86df2fcac6aaaf1fb58ee297cd18c4a083779d8 (patch) | |
tree | 8131ae00af686ded682feb24a437721283460481 /sys/fs/devfs | |
parent | e15ce4b24f5a7385640b589da3c424d5c486d3cc (diff) | |
download | FreeBSD-src-b86df2fcac6aaaf1fb58ee297cd18c4a083779d8.zip FreeBSD-src-b86df2fcac6aaaf1fb58ee297cd18c4a083779d8.tar.gz |
Use vfs_timestamp() instead of getnanotime() directly.
Fix some modes on directories and symlinks.
Instructed by: bde
Diffstat (limited to 'sys/fs/devfs')
-rw-r--r-- | sys/fs/devfs/devfs_devs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/devfs/devfs_devs.c b/sys/fs/devfs/devfs_devs.c index 6b406be..f5951e6 100644 --- a/sys/fs/devfs/devfs_devs.c +++ b/sys/fs/devfs/devfs_devs.c @@ -204,7 +204,7 @@ devfs_newdirent(char *name, int namelen) de->de_dirent->d_reclen = GENERIC_DIRSIZ(&d); bcopy(name, de->de_dirent->d_name, namelen); de->de_dirent->d_name[namelen] = '\0'; - getnanotime(&de->de_ctime); + vfs_timestamp(&de->de_ctime); de->de_mtime = de->de_atime = de->de_ctime; de->de_links = 1; return (de); @@ -221,7 +221,7 @@ devfs_vmkdir(char *name, int namelen, struct devfs_dirent *dotdot) TAILQ_INIT(&dd->de_dlist); dd->de_dirent->d_type = DT_DIR; - dd->de_mode = 0755; + dd->de_mode = 0555; dd->de_links = 2; dd->de_dir = dd; @@ -337,7 +337,7 @@ devfs_populate(struct devfs_mount *dm) de->de_inode = dm->dm_inode++; de->de_uid = 0; de->de_gid = 0; - de->de_mode = 0666; + de->de_mode = 0755; de->de_dirent->d_type = DT_LNK; pdev = dev->si_parent; j = strlen(pdev->si_name) + 1; |