- don't free user-supplied string (via -e)
[oweals/busybox.git] / libbb / update_passwd.c
index e99db40c04b9b470c3005e6d7df679249d4f0088..88bc28ca93a01a75ed5b63f6c5d67a31f8fdcd85 100644 (file)
@@ -36,7 +36,7 @@ static void check_selinux_update_passwd(const char *username)
 #define check_selinux_update_passwd(username) ((void)0)
 #endif
 
-int update_passwd(const char *filename, const char *username,
+int FAST_FUNC update_passwd(const char *filename, const char *username,
                        const char *new_pw)
 {
        struct stat sb;
@@ -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;