]> git.ipfire.org Git - thirdparty/mdadm.git/commit
platform-intel: canonicalize_file_name() is not portable
authorJohn Spencer <maillist-mdadm@barfooze.de>
Sat, 2 Feb 2013 16:26:45 +0000 (17:26 +0100)
committerNeilBrown <neilb@suse.de>
Sun, 10 Feb 2013 04:40:47 +0000 (15:40 +1100)
commite3635eee6409f12688adf3dd36f69cb457aafc72
tree5d525a341811dc4ff7718c3d1d704d7f5312d245
parentdef1133297d8f619c8fd644d6d8c6633ddcaa929
platform-intel: canonicalize_file_name() is not portable

this is a GLIBC specific feature and should not be used.

according to its manpage:
"The call canonicalize_file_name(path) is equivalent
to the call realpath(path, NULL)."

thus, we use realpath so it works everywhere.

Signed-off-by: John Spencer <maillist-mdadm@barfooze.de>
Signed-off-by: NeilBrown <neilb@suse.de>
platform-intel.c