Home
last modified time | relevance | path

Searched refs:filenamesfx (Results 1 – 2 of 2) sorted by relevance

/third_party/toybox/toys/pending/
Duserdel.c27 char *filenamesfx = NULL, *sfx = NULL, *line = NULL; in update_groupfiles() local
33 filenamesfx = xmprintf("%s+", filename); in update_groupfiles()
34 sfx = strchr(filenamesfx, '+'); in update_groupfiles()
38 unlink(filenamesfx); in update_groupfiles()
39 if (link(filename, filenamesfx)) error_msg("Can't create backup file"); in update_groupfiles()
51 newfp = xfopen(filenamesfx, "w+"); in update_groupfiles()
83 rename(filenamesfx, filename); in update_groupfiles()
86 unlink(filenamesfx); in update_groupfiles()
88 free(filenamesfx); in update_groupfiles()
/third_party/toybox/lib/
Dpassword.c110 char *filenamesfx = NULL, *namesfx = NULL, *shadow = NULL, in update_password() local
118 filenamesfx = xmprintf("%s+", filename); in update_password()
119 sfx = strchr(filenamesfx, '+'); in update_password()
128 unlink(filenamesfx); in update_password()
129 ret = link(filename, filenamesfx); in update_password()
143 newfp = fopen(filenamesfx, "w+"); in update_password()
190 rename(filenamesfx, filename); in update_password()
193 unlink(filenamesfx); in update_password()
198 free(filenamesfx); in update_password()