-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
avoid file ownership requirement in touch #28819
Conversation
Using `futimes` and passing NULL for the `times` parameter sets the current and access file times, but does not require file ownwership. From man page: > If times is NULL, the access and modification times are set to the current time. The caller must be the owner of the file, have permission to write the file, or be the superuser.
File tests have passed. CI failure is in |
This seems fine, but maybe the proper solution is to fix libuv instead? |
Yes, it may go in for a longer cycle though, which should be fine as long as we have the solution in Julia in the mean time. It is arguably not a bug in libuv |
CI passing now (after a re-run) |
Can this be merged now? |
|
Ah, though the linux man page doesn't mention the |
It says it behaves similar to |
I'd rather apply a temporary patch to our libuv fork than add platform-specific code in Julia. |
I agree it's not really a bug in libuv though; it would be adding a new function there. We should probably just merge this. |
Hmnn.. .This does not seem to have made into 1.0.2, which is unfortunate since I keep hitting this. Added a backport pending label now. |
Using `futimes` and passing NULL for the `times` parameter sets the current and access file times, but does not require file ownwership. From man page: > If times is NULL, the access and modification times are set to the current time. The caller must be the owner of the file, have permission to write the file, or be the superuser. (cherry picked from commit 3b3a163)
Using `futimes` and passing NULL for the `times` parameter sets the current and access file times, but does not require file ownwership. From man page: > If times is NULL, the access and modification times are set to the current time. The caller must be the owner of the file, have permission to write the file, or be the superuser. (cherry picked from commit 3b3a163)
Using `futimes` and passing NULL for the `times` parameter sets the current and access file times, but does not require file ownwership. From man page: > If times is NULL, the access and modification times are set to the current time. The caller must be the owner of the file, have permission to write the file, or be the superuser. (cherry picked from commit 3b3a163)
Using
futimes
and passing NULL for thetimes
parameter sets the current and access file times, but does not require file ownwership (on unices).From man page:
ref: #28815