]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
libcephfs: getcwd after chdir for API constraint
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 12 Mar 2025 14:33:02 +0000 (10:33 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 17 Mar 2025 19:43:24 +0000 (15:43 -0400)
commitf94bdb4ead271c17633d2405e63990fb182f4e0c
tree61d4096e943695b8cc43f7c606bd1bf1d766cbe2
parent2edaafdf1da61561a237bdb5685a3061cd46074e
libcephfs: getcwd after chdir for API constraint

libcephfs semantics require that the old path to the cwd be returned when
getcwd is encounters an unlinked directory in the current working directory.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit c7c5089ff95d6c68e009686bf4ff74772ad4ff67)
src/libcephfs.cc