[dovecot/core] b6c7cd: fs-posix: Strip trailing "/" from filenames

GitHub noreply at github.com
Fri May 18 10:30:20 EEST 2018


  Branch: refs/heads/master-2.3
  Home:   https://github.com/dovecot/core
  Commit: b6c7cd53e9b840fd560da5957bbddbe1f2e9530c
      https://github.com/dovecot/core/commit/b6c7cd53e9b840fd560da5957bbddbe1f2e9530c
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-05-18 (Fri, 18 May 2018)

  Changed paths:
    M src/lib-fs/fs-posix.c

  Log Message:
  -----------
  fs-posix: Strip trailing "/" from filenames

This is mainly because "doveadm fs delete -R" adds it to indicate to the
fs-driver that the whole directory is wanted to be deleted. This change
fixes fs-posix to work with NFS, where otherwise unlink("symlink-to-dir/")
fails with ENOTDIR. Without NFS the same call succeeds.



      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the dovecot-cvs mailing list