summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendlocaltest.c
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2023-04-11 16:14:15 -0700
committerOndrej Holy <oholy@redhat.com>2023-05-03 04:29:37 -0400
commit85bfb701fc95abeaa8a8ca3d9059378a9490f738 (patch)
tree9a719f0497e6c1489f544ff1fba515289ab1fc6c /daemon/gvfsbackendlocaltest.c
parentfc2669f63c5def1528dda2e7833db5774aa08e22 (diff)
downloadgvfs-85bfb701fc95abeaa8a8ca3d9059378a9490f738.tar.gz
smb: Allow renaming a file to the same name with a different casegnome-42
We check to see if the desired file name already exists before doing a renaming by stat'ing the file (to prevent smb from destroying an existing file). Since smb is not case sensitive, the check for an existing file mistakenly returns true if we are only changing the filename's case. Add a second check to see whether we are simply changing the case of the filename. Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/672 (cherry picked from commit a845ba0220fef72815ce091b92f74767d8025541)
Diffstat (limited to 'daemon/gvfsbackendlocaltest.c')
0 files changed, 0 insertions, 0 deletions