mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Fri Dec 25 21:48:51 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* vfs/direntry.c (vfs_s_new_inode): Moved initialization of st_ino and st_dev from vfs_s_default_stat. (vfs_s_default_stat): initialize st_ino and st_dev to zero * vfs/tar.c (tar_open_archive): Make a new MEDATA->rdev for every new archive.
This commit is contained in:
parent
1b248adf08
commit
d2b1a29c91
@ -1,3 +1,13 @@
|
||||
Fri Dec 25 21:48:51 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||
|
||||
* direntry.c (vfs_s_new_inode): Moved initialization of st_ino
|
||||
and st_dev from vfs_s_default_stat.
|
||||
|
||||
(vfs_s_default_stat): initialize st_ino and st_dev to zero
|
||||
|
||||
* tar.c (tar_open_archive): Make a new MEDATA->rdev for every
|
||||
new archive.
|
||||
|
||||
Mon Dec 21 22:55:48 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||
|
||||
* tar.c: Deleted global variable tar_gzipped_memlimit.
|
||||
|
@ -46,6 +46,8 @@ vfs_s_inode *vfs_s_new_inode (vfs *me, vfs_s_super *super, struct stat *initstat
|
||||
ino->ent = NULL;
|
||||
ino->flags = 0;
|
||||
ino->st.st_nlink = 0;
|
||||
ino->st.st_ino = MEDATA->inode_counter++;
|
||||
ino->st.st_dev = MEDATA->rdev;
|
||||
|
||||
super->fd_usage++;
|
||||
total_inodes++;
|
||||
@ -146,8 +148,8 @@ struct stat *vfs_s_default_stat (vfs *me, mode_t mode)
|
||||
mode &= ~myumask;
|
||||
|
||||
st.st_mode = mode;
|
||||
st.st_ino = MEDATA->inode_counter++;
|
||||
st.st_dev = MEDATA->rdev;
|
||||
st.st_ino = 0;
|
||||
st.st_dev = 0;
|
||||
st.st_rdev = 0;
|
||||
st.st_uid = getuid ();
|
||||
st.st_gid = getgid ();
|
||||
|
Loading…
Reference in New Issue
Block a user