mirror of https://github.com/FDOS/kernel.git
Creation time/date set on create instead of write time/date (set on close)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1043 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
66e2a7d174
commit
91189d3608
|
@ -100,7 +100,7 @@ struct dpb FAR *get_dpb(COUNT dsk)
|
|||
return cdsp->cdsDpb;
|
||||
}
|
||||
|
||||
/* initialize directory entry (creation/access stamps 0 as per MS-DOS 7.10) */
|
||||
/* initialize directory entry */
|
||||
STATIC void init_direntry(struct dirent *dentry, unsigned attrib,
|
||||
CLUSTER cluster, char *name)
|
||||
{
|
||||
|
@ -111,8 +111,8 @@ STATIC void init_direntry(struct dirent *dentry, unsigned attrib,
|
|||
#endif
|
||||
dentry->dir_start = (UWORD)cluster;
|
||||
dentry->dir_attrib = (UBYTE)attrib;
|
||||
dentry->dir_time = dos_gettime();
|
||||
dentry->dir_date = dos_getdate();
|
||||
dentry->dir_crtime = dos_gettime();
|
||||
dentry->dir_crdate = dos_getdate();
|
||||
}
|
||||
|
||||
/************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue