This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

scripts/cpp


This fixes the missing quotes in scripts/cpp.

2002-01-11  Andreas Schwab  <schwab@suse.de>

	* scripts/cpp: Fix quoting and add sanity check.

--- scripts/cpp.~1.2.~	Thu Dec  6 10:20:25 2001
+++ scripts/cpp	Fri Jan 11 10:34:56 2002
@@ -15,8 +15,12 @@
     fi
   fi
 fi
+if test -z "$cpp"; then
+  echo "cpp not found" >&2
+  exit 1
+fi
 
-exec $cpp $*
+exec "$cpp" ${1+"$@"}
 Local Variables:
 mode: sh
 End:

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-904229 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]