John Howard
e43ad798e3
Add DisableProcessPrivileges
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2016-11-02 16:44:36 -07: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
Darren Stahl
3e4c0f5aa3
Fixes performance regression in GO 1.6
...
Signed-off-by: Darren Stahl <darst@microsoft.com >
2016-03-15 15:25:25 -07:00
John Starks
8f29b1bf99
Merge pull request #11 from Microsoft/test_pipe_eof
...
Support CloseWrite() by using pipe message mode
2016-03-15 15:11:27 -07:00
John Starks
b12bd3ac52
Let clients set pipe buffer sizes
2016-03-15 11:59:27 -07:00
John Starks
36f4e701c4
Add support for CloseWrite() to pipes
...
This change adds support for message mode pipes and uses them to support
CloseWrite() to better match TCP and UNIX sockets. Message mode pipes
support writing and (optionally) reading data in message-sized chunks.
This is useful for us because when in this mode a zero-sized message can
be read. We use this zero-sized message to signal that no more writes will
arrive. This is not standard practice in Windows, but it is a reasonable
compromise.
2016-03-15 11:58:02 -07:00
John Starks
0c1e4a09ec
Add tests that check for EOF on pipe close
2016-03-14 16:33:35 -07:00
John Starks
f778f05015
Merge pull request #10 from Microsoft/priv_fix
...
Fix RunWithPrivilege when the process token already has the privilege
2016-03-05 18:57:29 -08:00
John Starks
cd7216c8af
Fix RunWithPrivilege when the process token already has the privilege
2016-03-05 18:49:41 -08:00
John Starks
c40bf24f40
Merge pull request #9 from Microsoft/add_tar
...
Use forked archive/tar to encode Windows metadata properly
2016-02-23 12:49:43 -08:00
John Starks
b1cf780eb5
Use tar fork to encode Windows metadata correctly
2016-02-23 12:48:28 -08:00
John Starks
71ac47a42e
Add tar.Headers.Winheaders for Windows metadata
2016-02-23 12:48:26 -08:00
John Starks
752c574975
Add archive/tar from go 1.6
...
github.com/golang/go bfccf7b3e198587372f755d4ebace292a06ea2e5
2016-02-23 12:48:25 -08:00
John Starks
db2d8862e6
Merge pull request #8 from Microsoft/backup
...
Fix encoding of Win32 file times
2016-02-23 12:10:00 -08:00
John Starks
0186d1e4dd
Fix encoding of Win32 file times
2016-02-22 14:04:34 -08:00
John Starks
a7276e8bc4
Merge pull request #7 from Microsoft/backup
...
Interfaces on top of BackupRead, BackupWrite
2016-02-18 20:42:46 -08:00