diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-01-13 12:45:18 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-01-13 12:45:18 +0300 |
commit | 4bcdec727623c4f1775ba8fceb69a83b021657e1 (patch) | |
tree | 040eb6b0df41bbf6a27cc8b24c90ced5fc0813a2 /winsup/cygwin/syscalls.cc | |
parent | 4aab0ed8287a4f1323c600f0224c96d9eb383cac (diff) |
* syscalls.cc (rename): Don't exit prematurely with EROFS when trying
to rename an AF_LOCAL socket or when trying to replace an AF_LOCAL
socket.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 5cc59e682..ec589712a 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1765,7 +1765,7 @@ rename (const char *oldpath, const char *newpath) set_errno (ENOENT); goto out; } - if (oldpc.isspecial ()) /* No renames from virtual FS */ + if (oldpc.isspecial () && !oldpc.issocket ()) /* No renames from virtual FS */ { set_errno (EROFS); goto out; @@ -1814,7 +1814,7 @@ rename (const char *oldpath, const char *newpath) set_errno (newpc.error); goto out; } - if (newpc.isspecial ()) /* No renames to virtual FSes */ + if (newpc.isspecial () && !newpc.issocket ()) /* No renames to virtual FSes */ { set_errno (EROFS); goto out; |