From 1cf925ca2373067aed8de19fecdc025f01c6423e Mon Sep 17 00:00:00 2001 From: "U-AMR\\MSHEFTY" Date: Fri, 15 Jan 2010 09:12:51 -0800 Subject: [PATCH] commit --- meta | 3 +-- patches/getopt | 45 --------------------------------------------- 2 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 patches/getopt diff --git a/meta b/meta index 6d7e0090..b40b5978 100644 --- a/meta +++ b/meta @@ -1,8 +1,7 @@ Version: 1 -Previous: 408fa7b2d5f2de2dbfe7a82f2517a26c7eb6752d +Previous: d1c4e8d60cab60cc1a9ae5a58e79aa367ec546fd Head: b94edfcbf7ccdaf6ab8d1172ed661a1dc510aea0 Applied: - getopt: c7fe4c8b921fb8baef915df044dbcb0f678f1770 delete-crit: b94edfcbf7ccdaf6ab8d1172ed661a1dc510aea0 Unapplied: rm-build: 065e916eb4f6b5b133e705a6af588c318ed512c6 diff --git a/patches/getopt b/patches/getopt deleted file mode 100644 index 0b760185..00000000 --- a/patches/getopt +++ /dev/null @@ -1,45 +0,0 @@ -Bottom: 059272ceb326a0210862ed6d97a9fb0ba612b2de -Top: d9d223b2c5cc8aaf6b93c4bde506166391e6bb55 -Author: U-AMR\MSHEFTY -Date: 2010-01-13 15:09:17 -0800 - -etc/getopt: allow use of '/' for command line args - -Windows uses '/' to specify command line arguments. Change -getopt to allow using '-' or '/'. - -Signed-off-by: Sean Hefty - - ---- - -diff --git a/trunk/etc/user/getopt.c b/trunk/etc/user/getopt.c -index af9230c..dded0bd 100644 ---- a/trunk/etc/user/getopt.c -+++ b/trunk/etc/user/getopt.c -@@ -49,7 +49,7 @@ int getopt(int argc, char * const argv[], char const *opts) - return EOF; - } - -- if (argv[optind][0] != '-') { -+ if (argv[optind][0] != '-' && argv[optind][0] != '/') { - return EOF; - } - -@@ -82,7 +82,7 @@ int getopt(int argc, char * const argv[], char const *opts) - optarg = NULL; - goto out; - } -- if (argv[optind+1] && argv[optind+1][0] == '-') -+ if (argv[optind+1] && (argv[optind+1][0] == '-' || argv[optind+1][0] == '/')) - goto out; - } - -@@ -107,7 +107,7 @@ int getopt_long(int argc, char * const argv[], char const *opts, - return EOF; - } - -- if (argv[optind][0] != '-') { -+ if (argv[optind][0] != '-' && argv[optind][0] != '/') { - return EOF; - } -- 2.46.0