aboutsummaryrefslogtreecommitdiff
path: root/libbb/remove_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/remove_file.c')
-rw-r--r--libbb/remove_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/remove_file.c b/libbb/remove_file.c
index 92534a1c5..509aa6a6d 100644
--- a/libbb/remove_file.c
+++ b/libbb/remove_file.c
@@ -53,7 +53,7 @@ int remove_file(const char *path, int flags)
53 if ((!(flags & FILEUTILS_FORCE) && access(path, W_OK) < 0 && 53 if ((!(flags & FILEUTILS_FORCE) && access(path, W_OK) < 0 &&
54 isatty(0)) || 54 isatty(0)) ||
55 (flags & FILEUTILS_INTERACTIVE)) { 55 (flags & FILEUTILS_INTERACTIVE)) {
56 fprintf(stderr, "%s: descend into directory `%s'? ", bb_applet_name, 56 fprintf(stderr, "%s: descend into directory `%s'? ", applet_name,
57 path); 57 path);
58 if (!bb_ask_confirmation()) 58 if (!bb_ask_confirmation())
59 return 0; 59 return 0;
@@ -80,7 +80,7 @@ int remove_file(const char *path, int flags)
80 } 80 }
81 81
82 if (flags & FILEUTILS_INTERACTIVE) { 82 if (flags & FILEUTILS_INTERACTIVE) {
83 fprintf(stderr, "%s: remove directory `%s'? ", bb_applet_name, path); 83 fprintf(stderr, "%s: remove directory `%s'? ", applet_name, path);
84 if (!bb_ask_confirmation()) 84 if (!bb_ask_confirmation())
85 return status; 85 return status;
86 } 86 }
@@ -96,7 +96,7 @@ int remove_file(const char *path, int flags)
96 !S_ISLNK(path_stat.st_mode) && 96 !S_ISLNK(path_stat.st_mode) &&
97 isatty(0)) || 97 isatty(0)) ||
98 (flags & FILEUTILS_INTERACTIVE)) { 98 (flags & FILEUTILS_INTERACTIVE)) {
99 fprintf(stderr, "%s: remove `%s'? ", bb_applet_name, path); 99 fprintf(stderr, "%s: remove `%s'? ", applet_name, path);
100 if (!bb_ask_confirmation()) 100 if (!bb_ask_confirmation())
101 return 0; 101 return 0;
102 } 102 }