File: 04-getopt.patch

package info (click to toggle)
fcode-utils 1.0.2-6
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 46,772 kB
  • ctags: 1,284
  • sloc: ansic: 9,705; csh: 241; makefile: 106; sh: 17
file content (11 lines) | stat: -rw-r--r-- 288 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
--- a/toke/toke.c
+++ b/toke/toke.c
@@ -299,7 +299,7 @@ static void get_args( int argc, char **a
 			/*  Distinguish between a '?' from the user
 			 *  and one  getopt()  returned
 			 */
-			if ( argv[argindx][1] != '?' )
+			if (optopt )
 			{
 			    inval_opt = TRUE;
 			    break;