Darren Stahl
e9792bc98c
Added runtime.KeepAlive for the new stricter 1.8 GC
...
Signed-off-by: Darren Stahl <darst@microsoft.com >
2017-05-03 12:47:12 -07:00
Darren Stahl
23ad5a714c
Allocate securityDescriptor in C memory
...
Signed-off-by: Darren Stahl <darst@microsoft.com >
2017-05-03 12:46:54 -07:00
John Howard
f3b1913901
Merge pull request #43 from simonferquel/deadlock-on-concurrent-rw
...
Flush outgoing content before sending EOF message
2017-04-25 19:53:07 -07:00
Simon Ferquel
7c7d6b461c
Flush file buffers on CloseWrite
...
This forces any pending data to be sent to the remote party before
emitting the 0-length EOF message, to make sure it appears as a seperate
message.
This fixes the "TestEchoWithMessaging" test
Signed-off-by: Simon Ferquel <simon.ferquel@docker.com >
2017-03-17 16:57:20 +01:00
Simon Ferquel
203d18a858
Introduces a test that does an echo using message mode named pipes
...
This exhibit a deadlock we see sometimes when using docker cli connected
to a daemon through a named pipe with some data in the input stream (ie:
`echo "hello" | docker run ... `)
The problem seems to be that the EOF 0-length message is collapsed with
the previous message, if the buffer associated with the named pipe is
not previously flushed
Signed-off-by: Simon Ferquel <simon.ferquel@docker.com >
2017-03-17 16:43:53 +01:00
Stefan J. Wernli
fff283ad51
Merge pull request #40 from Microsoft/altdatastream
...
Fix filename length check alt data stream
2017-01-31 16:43:30 -08:00
John Howard
10390492a4
Fix filename length check alt data stream
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2017-01-31 16:40:45 -08:00
John Starks
307e919c66
Merge pull request #37 from vanita5/master
...
Replace unnecessary mod17 function with builtin mod
2017-01-12 16:12:40 -08:00
vanita5
55a2bb3c30
replace unnecessary mod17 function with builtin mod, see #37 and #38
2017-01-13 00:02:31 +01:00
Darren Stahl
24a3e3d3fc
Merge pull request #36 from darrenstahlmsft/Updatezsyscall
...
Regenerate zsyscall with latest mksyscall_windows
2016-11-21 14:01:10 -08:00
Darren Stahl
ff6c542051
Regenerate zsyscall with latest mksyscall_windows
...
Signed-off-by: Darren Stahl <darst@microsoft.com >
2016-11-21 12:11:25 -08:00
Darren Stahl
d8f60f2dd1
Merge pull request #33 from cezarsa/master
...
Include build tags to allow go get on non-Windows platforms.
2016-11-21 12:05:53 -08:00
John Starks
562bb09f66
Merge pull request #35 from Microsoft/jjh/disableprocpriv
...
Add DisableProcessPrivileges
2016-11-03 11:56:17 -07:00
John Howard
e43ad798e3
Add DisableProcessPrivileges
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2016-11-02 16:44:36 -07:00
Cezar Sa Espinola
94c0518b08
Include build tags to allow go get on non-Windows platforms. Fixes #30
2016-10-06 18:00:50 -03:00
Justin
ce2922f643
Merge pull request #28 from jstarks/conduct
...
Add reference to code of conduct
2016-06-21 14:14:38 -07:00
John Starks
2cf8f2ee8b
Add reference to code of conduct
2016-06-21 14:08:28 -07:00
John Starks
4f1a71750d
Merge pull request #24 from Microsoft/fix
...
Pass FILE_FLAG_OPEN_REPARSE_POINT in OpenForBackup
2016-05-19 17:05:29 -07:00
John Starks
f4304cf7dc
Pass FILE_FLAG_OPEN_REPARSE_POINT in OpenForBackup
2016-05-19 17:02:51 -07:00
John Starks
88d9b9ee05
Merge pull request #23 from Microsoft/wim_opts
...
Optimize WIM parsing
2016-05-17 13:16:34 -07:00
John Starks
2255376ea2
Merge pull request #22 from Microsoft/priv_opts
...
Add function for setting privileges globally
2016-05-13 11:41:16 -07:00
John Starks
e94cfdcd8a
Merge pull request #21 from Microsoft/sjw/sddl-fix
...
Remove use of SDDL in tar headers
2016-05-12 21:35:16 -07:00
John Starks
f1a78c8aaf
Add function for setting privileges globally
...
Also optimize privilege setting with the same privilege name multiple
times.
2016-05-12 21:33:03 -07:00
John Starks
69b46ecca8
LZX: Split table into two parts
2016-05-12 19:47:52 -07:00
John Starks
d69c9fb04e
LZX: Perform buffering internally
2016-05-12 19:47:51 -07:00
John Starks
5e100a8bcc
LZX: Improve huffman table encoding
2016-05-12 19:47:47 -07:00
Stefan J. Wernli
0ab2de7e65
Remove use of SDDL in tar headers
...
Switching to using straight binary instead of SDDL in tar headers to avoid failures in converting domain SIDs into/out of SDDL.
Fixes https://github.com/Microsoft/go-winio/issues/19
2016-05-11 17:05:17 -07:00
John Starks
d1317d5733
Reduce decompression of directory metadata
2016-05-11 16:33:31 -07:00
John Starks
3b8b3c98b2
Merge pull request #18 from Microsoft/wim_multi
...
Fix multiple calls to img.Open
2016-04-18 15:16:11 -07:00
John Starks
24c009df14
Fix multiple calls to img.Open
2016-04-18 12:51:10 -07:00
John Starks
862b655792
Merge pull request #17 from Microsoft/fix_symlink
...
Backuptar: replace slash with backslash on link target
2016-04-11 18:00:29 -07:00
John Starks
6606cf93e2
Handle long paths correctly in reparse points
2016-04-11 17:20:42 -07:00
John Starks
93ca0b892a
Backuptar: replace slash with backslash on link target
2016-04-11 15:45:43 -07:00
John Starks
9f57cbbcbc
Merge pull request #16 from Microsoft/fixing_wim
...
Fix various WIM bugs
2016-04-06 17:10:02 -07:00
John Starks
a7636ef88a
WIM: Parse XML data
...
This parses the XML data so that callers do not have to.
2016-04-06 17:09:08 -07:00
John Starks
9ef8a67999
Add .gitignore
2016-04-06 13:59:58 -07:00
John Starks
d18f2f3f56
Add validate tool to scan all directories in a WIM
2016-04-06 13:58:23 -07:00
John Starks
2748a384c0
WIM: Don't use syscall package
...
This allows the WIM code to build on other OSes.
2016-04-06 13:57:09 -07:00
John Starks
3cedae2e26
WIM: Fix handling of reparse points
...
Reparse point data is not always in the first stream, sometimes it is in
the file data itself. Remove ReparseStream and always put it in the file
data.
2016-04-06 13:56:25 -07:00
John Starks
bad3e111b5
LZX: Fix unaligned block failure
...
This fixes the case where an unaligned block lands on a 16-bit boundary.
2016-04-06 13:45:37 -07:00
John Starks
9e60d867bd
Merge pull request #15 from Microsoft/wim_support
...
Add WIM parser
2016-04-05 12:21:21 -07:00
John Starks
0e1e9fec26
Add WIM parser
...
This new code supports parsing WIM files. Currently, only WIM files that
were created with no compression or LZX compression are supported. Xpress
compression is not.
2016-04-04 13:51:45 -07:00
John Starks
9e2895e5f6
Merge pull request #14 from Microsoft/tar_changes
...
Backup-related improvements
2016-03-30 12:52:49 -07:00
John Starks
346aee8003
Add backuptar.BasicInfoHeader helper function
...
This is useful for creating tar headers for things that don't have backup
streams, such as links.
2016-03-30 12:38:06 -07:00
John Starks
3b18fb5af2
Add OpenForBackup function
...
This works with RunWithPrivileges to allow opening files as an
administrator without access checks.
2016-03-30 12:38:05 -07:00
John Starks
2245090e75
Add GetFileID function
2016-03-30 12:38:04 -07:00
John Starks
424d62c72e
Use existing PAX headers for time
...
This removes the MSWINDOWS.* time fields and uses PAX times directly. I
didn't previously realize that PAX times could be negative, which
eliminates the need to store Windows times in a different format.
This also uses the LIBARCHIVE.creationtime field for creation times to
match OS X behavior.
2016-03-30 12:38:03 -07:00
John Starks
8f9387ea7e
Merge pull request #13 from Microsoft/TimerResolutionFix
...
Fixed error in #12
2016-03-15 17:33:20 -07:00
Darren Stahl
4191cdca28
Fixed error in #12
...
Signed-off-by: Darren Stahl <darst@microsoft.com >
2016-03-15 15:51:39 -07:00
John Starks
dc33d951c5
Merge pull request #12 from Microsoft/TimerResolution
...
Fixes performance regression in GO 1.6
2016-03-15 15:38:50 -07:00