diff options
author | Paul Fox <pgf@brightstareng.com> | 2007-11-08 20:00:36 +0000 |
---|---|---|
committer | Paul Fox <pgf@brightstareng.com> | 2007-11-08 20:00:36 +0000 |
commit | 599bbfbd9be0073c262319a120174fad5a60113e (patch) | |
tree | d1145b8f98fd138241c72ac4601389d748b5d580 /libbb/update_passwd.c | |
parent | abbd363261cf3a9b18e611c524f8103fb68f539b (diff) | |
download | busybox-w32-599bbfbd9be0073c262319a120174fad5a60113e.tar.gz busybox-w32-599bbfbd9be0073c262319a120174fad5a60113e.tar.bz2 busybox-w32-599bbfbd9be0073c262319a120174fad5a60113e.zip |
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().
Diffstat (limited to 'libbb/update_passwd.c')
-rw-r--r-- | libbb/update_passwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
52 | int cnt = 0; | 52 | int cnt = 0; |
53 | int ret = -1; /* failure */ | 53 | int ret = -1; /* failure */ |
54 | 54 | ||
55 | filename = xmalloc_readlink_follow(filename); | 55 | filename = xmalloc_follow_symlinks(filename); |
56 | if (filename == NULL) | 56 | if (filename == NULL) |
57 | return -1; | 57 | return -1; |
58 | 58 | ||