Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Varying semantics of Unix.utimes #3145

Closed
vicuna opened this issue Jan 10, 2002 · 3 comments
Closed

Varying semantics of Unix.utimes #3145

vicuna opened this issue Jan 10, 2002 · 3 comments

Comments

@vicuna
Copy link

vicuna commented Jan 10, 2002

Original bug ID: 797
Reporter: administrator
Status: acknowledged
Resolution: open
Priority: normal
Severity: feature
Category: otherlibs

Bug description

Full_Name: Zhe Yang
Version: 3.04
OS: Windows
Submission from: saul.cis.upenn.edu (158.130.12.4)

On the Windows platform, the Unix.utimes function behaves differently
in the native, MSVC-based version and in the cygwin-based version. The Posix
interpretation of utimes allows setting the time of read-only files, if the UID
of the process is the same as the owner of the file. Using the cygwin-based
version, utimes succeeds in this case, but using the MSVC-based version, utimes
fails with an exception.

Could the utimes in the MSVC-based version of Ocaml be corrected?

Thanks, Zhe

@vicuna
Copy link
Author

vicuna commented Nov 13, 2002

Comment author: administrator

To be fixed some day, but we first need to understand how Cygwin does it.

@github-actions
Copy link

This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.

@github-actions github-actions bot added the Stale label May 18, 2020
@xavierleroy
Copy link
Contributor

The Win32 implementation of Unix.utimes was rewritten recently (commit af20b3e) and seems to work fine with readonly files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants