From 599bbfbd9be0073c262319a120174fad5a60113e Mon Sep 17 00:00:00 2001 From: Paul Fox Date: Thu, 8 Nov 2007 20:00:36 +0000 Subject: xmalloc_follow_symlinks() -- fix ELOOP issue with absolute paths, return full path in cases where path doesn't resolve to a link. change name to better differentiate from xmalloc_readlink(). --- libbb/update_passwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb/update_passwd.c') diff --git a/libbb/update_passwd.c b/libbb/update_passwd.c index e99db40c0..d10e863c6 100644 --- a/libbb/update_passwd.c +++ b/libbb/update_passwd.c @@ -52,7 +52,7 @@ int update_passwd(const char *filename, const char *username, int cnt = 0; int ret = -1; /* failure */ - filename = xmalloc_readlink_follow(filename); + filename = xmalloc_follow_symlinks(filename); if (filename == NULL) return -1; -- cgit v1.2.3