aboutsummaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorMark Whitley <markw@lineo.com>2001-03-13 00:40:19 +0000
committerMark Whitley <markw@lineo.com>2001-03-13 00:40:19 +0000
commite0bf91d7c612619526772605890538f0c3e44c05 (patch)
tree468e0e8126f57b7be69f471ed3ac046a9f8fedb4 /utility.c
parent53737c5421b2356ead7659249000daac7c1aea21 (diff)
downloadbusybox-w32-e0bf91d7c612619526772605890538f0c3e44c05.tar.gz
busybox-w32-e0bf91d7c612619526772605890538f0c3e44c05.tar.bz2
busybox-w32-e0bf91d7c612619526772605890538f0c3e44c05.zip
Applied patch from Christophe Boyanique to add -i support to rm.
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/utility.c b/utility.c
index c557130b9..8e85894d0 100644
--- a/utility.c
+++ b/utility.c
@@ -1859,6 +1859,24 @@ void trim(char *s)
1859} 1859}
1860#endif 1860#endif
1861 1861
1862#ifdef BB_FEATURE_RM_INTERACTIVE
1863 #if defined (BB_CP_MV) || defined (BB_RM)
1864int ask_confirmation()
1865{
1866 int c = '\0';
1867 int ret = 0;
1868
1869 while (c != '\n') {
1870 c = getchar();
1871 if ( c != '\n' ) {
1872 ret = ((c=='y')||(c=='Y')) ? 1 : 0;
1873 }
1874 }
1875 return ret;
1876}
1877 #endif
1878#endif
1879
1862/* END CODE */ 1880/* END CODE */
1863/* 1881/*
1864Local Variables: 1882Local Variables: