mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-23 05:44:41 +02:00
Fix a regression with sft_flags overwriting what dos_open wrote so file
dates/times would always be updated, even for reads! git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1406 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
a0382d32e4
commit
9a415b14b2
@ -576,6 +576,7 @@ long DosOpenSft(char FAR * fname, unsigned flags, unsigned attrib)
|
|||||||
return DE_ACCESS;
|
return DE_ACCESS;
|
||||||
|
|
||||||
sftp->sft_count++;
|
sftp->sft_count++;
|
||||||
|
sftp->sft_flags = PriPathName[0] - 'A';
|
||||||
result = dos_open(PriPathName, flags, attrib, sft_idx);
|
result = dos_open(PriPathName, flags, attrib, sft_idx);
|
||||||
if (result >= 0)
|
if (result >= 0)
|
||||||
{
|
{
|
||||||
@ -590,7 +591,6 @@ long DosOpenSft(char FAR * fname, unsigned flags, unsigned attrib)
|
|||||||
return DE_ACCESS;
|
return DE_ACCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sftp->sft_flags = PriPathName[0] - 'A';
|
|
||||||
DosGetFile(PriPathName, sftp->sft_name);
|
DosGetFile(PriPathName, sftp->sft_name);
|
||||||
return sft_idx | ((long)result << 16);
|
return sft_idx | ((long)result << 16);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user