Bug 11021 - readlink -f shows different results than coreutils equivalent
Summary: readlink -f shows different results than coreutils equivalent
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-17 12:23 UTC by Ricardo Ribalda
Modified: 2018-05-24 18:24 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Ribalda 2018-05-17 12:23:46 UTC
Busybox readlink behaves diferently that coreutils readlink:

root@qt5122:~# touch /tmp/this_file_exist
root@qt5122:~# busybox readlink -f /tmp/this_file_exist
/tmp/this_file_exist
root@qt5122:~# readlink -f /tmp/this_file_exist
/tmp/this_file_exist

root@qt5122:~# readlink -f /tmp/this_file_does_not_exist
/tmp/this_file_does_not_exist
root@qt5122:~# busybox readlink -f /tmp/this_file_does_not_exist
root@qt5122:~#

This breaks dpkg


Check:
https://patchwork.openembedded.org/series/12154/#

Thanks!
Comment 1 Denys Vlasenko 2018-05-24 15:31:40 UTC
Fixed in git:

commit 747162109fb1c891baf6aafa1ca0410bd08d04a4
Author: Denys Vlasenko <vda.linux@googlemail.com>
Date:   Thu May 24 17:29:14 2018 +0200

    realpath,readlink -f: coreutils compat, closes 11021
Comment 2 Ricardo Ribalda 2018-05-24 18:24:59 UTC
Thanks!