diff options
author | Daniel LEVAI <leva@ecentrum.hu> | 2010-05-13 01:01:03 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-13 01:01:03 +0200 |
commit | 6ec76a9860188c0e2de54daf61f5a4ff590ad8ef (patch) | |
tree | edd70b526118253bc6ab17c0dcd069325fa5016f /system/pdksh/patches/104_Debian-#415167-lack-of-dot-arguments.patch | |
parent | 387f1e8f9c14fc5648eee03d43787806c806fe20 (diff) | |
download | slackbuilds-6ec76a9860188c0e2de54daf61f5a4ff590ad8ef.tar.gz |
system/pdksh: Added to 13.0 repository
Diffstat (limited to 'system/pdksh/patches/104_Debian-#415167-lack-of-dot-arguments.patch')
-rw-r--r-- | system/pdksh/patches/104_Debian-#415167-lack-of-dot-arguments.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/system/pdksh/patches/104_Debian-#415167-lack-of-dot-arguments.patch b/system/pdksh/patches/104_Debian-#415167-lack-of-dot-arguments.patch new file mode 100644 index 0000000000..ee3eca2ff0 --- /dev/null +++ b/system/pdksh/patches/104_Debian-#415167-lack-of-dot-arguments.patch @@ -0,0 +1,22 @@ +unset on unknown variable is not an error, +see http://www.opengroup.org/onlinepubs/009695399/utilities/unset.html +(from PLD) + +@DPATCH@ +Index: pdksh-5.2.14/c_sh.c +=================================================================== +--- pdksh-5.2.14.orig/c_sh.c 2008-04-15 20:56:22.000000000 +0200 ++++ pdksh-5.2.14/c_sh.c 2008-04-15 20:56:53.000000000 +0200 +@@ -183,8 +183,10 @@ + if (ksh_getopt(wp, &builtin_opt, null) == '?') + return 1; + +- if ((cp = wp[builtin_opt.optind]) == NULL) +- return 0; ++ if ((cp = wp[builtin_opt.optind]) == NULL) { ++ bi_errorf("missing argument"); ++ return 1; ++ } + file = search(cp, path, R_OK, &err); + if (file == NULL) { + bi_errorf("%s: %s", cp, err ? strerror(err) : "not found"); |