Home
last modified time | relevance | path

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

/external/toybox/toys/pending/
Duserdel.c27 char *filenamesfx = NULL, *sfx = NULL, *line = NULL; in update_groupfiles() local
32 filenamesfx = xmprintf("%s+", filename); in update_groupfiles()
33 sfx = strchr(filenamesfx, '+'); in update_groupfiles()
37 unlink(filenamesfx); in update_groupfiles()
38 if (link(filename, filenamesfx)) error_msg("Can't create backup file"); in update_groupfiles()
50 newfp = xfopen(filenamesfx, "w+"); in update_groupfiles()
84 rename(filenamesfx, filename); in update_groupfiles()
87 unlink(filenamesfx); in update_groupfiles()
89 free(filenamesfx); in update_groupfiles()
/external/toybox/lib/
Dpassword.c109 char *filenamesfx = NULL, *namesfx = NULL, *shadow = NULL, in update_password() local
116 filenamesfx = xmprintf("%s+", filename); in update_password()
117 sfx = strchr(filenamesfx, '+'); in update_password()
126 unlink(filenamesfx); in update_password()
127 ret = link(filename, filenamesfx); in update_password()
141 newfp = fopen(filenamesfx, "w+"); in update_password()
188 rename(filenamesfx, filename); in update_password()
191 unlink(filenamesfx); in update_password()
196 free(filenamesfx); in update_password()