Re: Patch ping

Tom Tromey
2001-12-07T19:02:19Z

>>>>> "Eli" == Eli Zaretskii <eliz@is.elta.co.il> writes:

Eli> Hmm... I probably am missing something obvious, but fragments
Eli> like this one:

Eli> + if (IS_ABSOLUTE_PATH (name))
Eli> + real_path = gdb_realpath (name);
Eli> +

Eli> confuse me. Aren't they supposed to convert non-absolute file
Eli> name, that is, say "if (!IS_ABSOLUTE_PATH (name))"?

No, these calls canonicalize absolute paths. I believe realpath()
isn't guaranteed to do anything sensible with a relative path. I will
add comments to this effect.

Tom