mirror of
https://github.com/restic/restic.git
synced 2026-11-22 05:14:23 +00:00
issue2699: restore symlinks on windows when run as admin user
This commit is contained in:
1 parent
f8910bc4ff
commit
8e5eb1090c
4 files changed
+14
-6
No files matched your search
+1
-1
@@ -51,7 +51,7 @@ func Rename(oldpath, newpath string) error {
|
||||
// Symlink creates newname as a symbolic link to oldname.
|
||||
// If there is an error, it will be of type *LinkError.
|
||||
func Symlink(oldname, newname string) error {
|
||||
return os.Symlink(fixpath(oldname), fixpath(newname))
|
||||
return os.Symlink(oldname, fixpath(newname))
|
||||
}
|
||||
|
||||
// Link creates newname as a hard link to oldname.
|
||||
|
||||
Reference in new issue
Block a user