-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
[fix] futimes
only works for owned files with write access
#128
Closed
+131
−80
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
24a444a
[fix] `futimes` only works for owned files with write access
piranna 30739c7
Ignore `EPERM` error on `futimes`
piranna 0673b54
Remove now useless `setMilliseconds()` calls on test
piranna 5429408
[futimes] Check if we own the file instead of capture `EPERM` exception
piranna 51700c0
Use lstat instead of stat (allow to process symlinks)
piranna 13d579a
Use file descriptors on writeContents/index.js when available
piranna 299b79c
checkChmod() function common to path and file descriptor
piranna f7639d1
Call futimes from writeContent
piranna 227bd48
Move futimes to writeContents
piranna ab3e1ca
call fs.stat() only once
piranna c09b3c0
set utimes when file descriptor is not available
piranna 4b0bbdc
Unified get utimes
piranna f94f8a5
remove callback on getChmod
piranna 9db7900
clean-up by removing anonimous functions
piranna 47216a8
Unified branches for fd and path functions
piranna eb6d80d
Fixed style
piranna 7cee24e
Some fixes after rebase
piranna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ function writeSymbolicLink(writePath, file, cb) { | |
return cb(err); | ||
} | ||
|
||
cb(null, file); | ||
cb(); | ||
}); | ||
} | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is outFD defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the
open
event.