forked from TrueCloudLab/restic
Don't panic on mknod on Windows
Instead return an error.
This commit is contained in:
parent
3f992c3d6e
commit
346c0c0c58
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
package restic
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
@ -13,7 +14,7 @@ func (node *Node) OpenForReading() (*os.File, error) {
|
|||
// special file, or named pipe) named pathname, with attributes
|
||||
// specified by mode and dev.
|
||||
var mknod = func(path string, mode uint32, dev int) (err error) {
|
||||
panic("mknod not implemented")
|
||||
return errors.New("device nodes cannot be created on windows")
|
||||
}
|
||||
|
||||
// Windows doesn't need lchown
|
||||
|
|
Loading…
Reference in a new issue