Page MenuHomeFreeBSD

realpath: Additional test cases
ClosedPublic

Authored by des on Fri, Oct 10, 2:05 PM.
Tags
None
Referenced Files
F133562811: D53024.id163937.diff
Sun, Oct 26, 4:40 PM
F133562664: D53024.id163940.diff
Sun, Oct 26, 4:38 PM
F133562629: D53024.id.diff
Sun, Oct 26, 4:38 PM
F133562517: D53024.id164081.diff
Sun, Oct 26, 4:37 PM
F133562510: D53024.id163945.diff
Sun, Oct 26, 4:37 PM
F133562471: D53024.id163944.diff
Sun, Oct 26, 4:37 PM
F133562396: D53024.diff
Sun, Oct 26, 4:36 PM
Unknown Object (File)
Fri, Oct 24, 1:38 AM
Subscribers

Details

Summary
  • Passing NULL should result in EINVAL
  • Passing an empty path should result in ENOENT
  • Failure with a non-null buffer should leave a partial result. As pointed out in a comment in the test case, this reveals a discrepancy between the documentation and reality. I am not sure if we want to fix the code (and risk breaking existing consumers) or amend the documentation to point out that this feature is both non-portable and not always as helpful as it sounds.

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Fri, Oct 10, 2:05 PM
This revision is now accepted and ready to land.Fri, Oct 10, 7:18 PM
This revision was automatically updated to reflect the committed changes.