xmalloc_follow_symlinks() -- fix ELOOP issue with absolute paths,
[oweals/busybox.git] / libbb / update_passwd.c
index e99db40c04b9b470c3005e6d7df679249d4f0088..d10e863c6c63de728e6c818e54993b5a4de3a4c7 100644 (file)
@@ -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;