summaryrefslogtreecommitdiff
path: root/loginutils/deluser.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-10-26 23:25:17 +0000
committerDenis Vlasenko2006-10-26 23:25:17 +0000
commitddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0 (patch)
treef4f2aa58fa669aed6e2c50bb7aa648a79ec1873d /loginutils/deluser.c
parentf0ed376eda5d5c25d270e5100a881fb2d801bee6 (diff)
downloadbusybox-ddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0.zip
busybox-ddec5af6b0803c7434a1cc2fdee5cb9873fe6bd0.tar.gz
rename functions to more understandable names
Diffstat (limited to 'loginutils/deluser.c')
-rw-r--r--loginutils/deluser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/deluser.c b/loginutils/deluser.c
index bbbd77d..795dae4 100644
--- a/loginutils/deluser.c
+++ b/loginutils/deluser.c
@@ -54,7 +54,7 @@ static void del_line_matching(const char *login, const char *filename)
struct stat statbuf;
- if ((passwd = bb_wfopen(filename, "r"))) {
+ if ((passwd = fopen_or_warn(filename, "r"))) {
// Remove pointless const.
xstat((char *)filename, &statbuf);
buffer = (char *) xmalloc(statbuf.st_size * sizeof(char));
@@ -64,7 +64,7 @@ static void del_line_matching(const char *login, const char *filename)
b = boundary(buffer, login);
if (b.stop != 0) {
/* write the file w/o the user */
- if ((passwd = bb_wfopen(filename, "w"))) {
+ if ((passwd = fopen_or_warn(filename, "w"))) {
fwrite(buffer, (b.start - 1), sizeof(char), passwd);
fwrite(&buffer[b.stop], (statbuf.st_size - b.stop), sizeof(char), passwd);
fclose(passwd);