Lines Matching refs:filename
86 int FAST_FUNC update_passwd(const char *filename, in update_passwd() argument
108 const char *shadow = strstr(filename, "shadow"); in update_passwd()
113 filename = xmalloc_follow_symlinks(filename); in update_passwd()
114 if (filename == NULL) in update_passwd()
121 fnamesfx = xasprintf("%s+", filename); in update_passwd()
126 old_fp = fopen(filename, "r+"); in update_passwd()
128 old_fp = fopen_or_warn(filename, "r+"); in update_passwd()
163 if (i || link(filename, fnamesfx)) in update_passwd()
174 bb_perror_msg("warning: can't lock '%s'", filename); in update_passwd()
300 bb_error_msg("can't find %s in %s", name, filename); in update_passwd()
302 bb_error_msg("can't find %s in %s", member, filename); in update_passwd()
319 || rename(fnamesfx, filename) in update_passwd()
337 free((char *)filename); in update_passwd()