|
From: Hans-Bernhard B. <br...@us...> - 2002-07-08 15:52:30
|
Update of /cvsroot/cscope/cscope/src
In directory usw-pr-cvs1:/tmp/cvs-serv28309/src
Modified Files:
command.c
Log Message:
Avoid shell complaint about clobbering files in redirection
Index: command.c
===================================================================
RCS file: /cvsroot/cscope/cscope/src/command.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** command.c 22 Nov 2001 17:38:19 -0000 1.17
--- command.c 8 Jul 2002 15:52:24 -0000 1.18
***************
*** 379,382 ****
--- 379,388 ----
if (commandc == '^') {
(void) strcat(strcat(newpat, " >"), temp2);
+ /* HBB 20020708: somebody might have even
+ * their non-interactive default shells
+ * complain about clobbering
+ * redirections... --> delete before
+ * overwriting */
+ remove(temp2);
}
exitcurses();
|