[Issue 7537] `File.tmpfile` requires administrator rights on Windows
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 19 11:23:00 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7537
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #7 from Walter Bright <bugzilla at digitalmars.com> 2012-04-19 11:23:55 PDT ---
(In reply to comment #5)
> The filename is chosen by the C runtime, not the operating system. It is a bug
> in the DigitalMars C runtime. It probably tries to use the hard-coded
> %WINDIR%\Temp directory, instead of the user profile directory or %TEMP%.
Actually, it uses stdio.h's _P_tmpdir, which on Windows is "\\". Did I say that
implementation is rather old? I also noticed that Windows 7 does not allow
writing to the root directory. XP allowed it.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list