Skip to content

Stop using EmulatedAbsolutePath#2509

Open
jemoreira wants to merge 1 commit intogoogle:mainfrom
jemoreira:unused
Open

Stop using EmulatedAbsolutePath#2509
jemoreira wants to merge 1 commit intogoogle:mainfrom
jemoreira:unused

Conversation

@jemoreira
Copy link
Copy Markdown
Member

@jemoreira jemoreira commented May 4, 2026

EmulateAbsolutePath was needed for the cvd server as the client may have
been executing in a different directory and with a different $HOME.

The function handled "~" at the begining of the path, which the cvd
command shouldn't do as that's the shell's responsibility.

Without the special handling for "~" and with all callers just using the
current working directory, calls to the function were doing exactly the
same as AbsolutePath or RealPath (with follow_symlinks as true or
false respectively).

EmulateAbsolutePath was needed for the cvd server as the client may have
been executing in a different directory and with a different $HOME.

The function handled "~" at the begining of the path, which the cvd
command shouldn't do as that's the shell's responsibility.

Without the special handling for "~" and with all callers just using the
current working directory, calls to the function were doing exactly the
same as `AbsolutePath` or `RealPath` (with `follow_symlinks` as true or
false respectively).
@jemoreira jemoreira requested a review from cjreynol May 4, 2026 22:51
@jemoreira jemoreira enabled auto-merge May 4, 2026 22:51
Comment thread base/cvd/cuttlefish/common/libs/utils/files.cpp
@jemoreira jemoreira changed the title Delete unused code Stop using EmulatedAbsolutePath May 4, 2026
@jemoreira jemoreira added this pull request to the merge queue May 5, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants