Skip to content

Commit

Permalink
open files on windows with FILE_SHARE_DELETE
Browse files Browse the repository at this point in the history
Fixes #613
  • Loading branch information
alfred-landrum committed May 7, 2020
1 parent 9b84b9f commit 8e0108b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/pcap/index/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"flag"
"fmt"
"io/ioutil"
"os"

"github.com/brimsec/zq/cmd/pcap/root"
"github.com/brimsec/zq/pcap"
"github.com/brimsec/zq/pkg/fs"
"github.com/mccanne/charm"
)

Expand Down Expand Up @@ -61,7 +61,7 @@ func (c *Command) Run(args []string) error {
if len(args) != 0 || c.inputFile == "" {
return errors.New("pcap index: must be provide single pcap file as -r argument")
}
f, err := os.Open(c.inputFile)
f, err := fs.Open(c.inputFile)
if err != nil {
return err
}
Expand Down

0 comments on commit 8e0108b

Please sign in to comment.