On 23.4.2015. 18:16, Luka Strižić wrote:
I will proceed implementing a).
The diff is attached.
The docs say something about including an identity with the diff. Can
the identity be embedded in it somehow or was it just meant to be in the
message like this? If that is the case, let's go with ChubbyHunteR.
=== modified file 'uspace/app/bdsh/cmds/modules/cat/cat.c'
--- uspace/app/bdsh/cmds/modules/cat/cat.c 2013-07-18 06:16:10 +0000
+++ uspace/app/bdsh/cmds/modules/cat/cat.c 2015-04-29 00:22:39 +0000
@@ -323,7 +323,7 @@
argc = cli_count_args(argv);
- for (c = 0, optind = 0, opt_ind = 0; c != -1;) {
+ for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) {
c = getopt_long(argc, argv, "xhvmH:t:b:s:n", long_options,
&opt_ind);
switch (c) {
case 'h':
=== modified file 'uspace/app/bdsh/cmds/modules/cmp/cmp.c'
--- uspace/app/bdsh/cmds/modules/cmp/cmp.c 2013-05-18 21:11:29 +0000
+++ uspace/app/bdsh/cmds/modules/cmp/cmp.c 2015-04-29 00:22:56 +0000
@@ -129,7 +129,7 @@
argc = cli_count_args(argv);
- for (c = 0, optind = 0, opt_ind = 0; c != -1;) {
+ for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) {
c = getopt_long(argc, argv, "hv", long_options, &opt_ind);
switch (c) {
case 'h':
=== modified file 'uspace/app/bdsh/cmds/modules/cp/cp.c'
--- uspace/app/bdsh/cmds/modules/cp/cp.c 2013-04-12 09:01:10 +0000
+++ uspace/app/bdsh/cmds/modules/cp/cp.c 2015-04-29 00:23:13 +0000
@@ -456,7 +456,7 @@
con = console_init(stdin, stdout);
argc = cli_count_args(argv);
- for (c = 0, optind = 0, opt_ind = 0; c != -1;) {
+ for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) {
c = getopt_long(argc, argv, "hvVfirb:", long_options, &opt_ind);
switch (c) {
case 'h':
=== modified file 'uspace/app/bdsh/cmds/modules/ls/ls.c'
--- uspace/app/bdsh/cmds/modules/ls/ls.c 2013-03-28 20:58:13 +0000
+++ uspace/app/bdsh/cmds/modules/ls/ls.c 2015-04-29 00:20:48 +0000
@@ -361,7 +361,7 @@
argc = cli_count_args(argv);
- for (c = 0, optind = 0, opt_ind = 0; c != -1;) {
+ for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) {
c = getopt_long(argc, argv, "hur", long_options, &opt_ind);
switch (c) {
case 'h':
=== modified file 'uspace/app/bdsh/cmds/modules/mkdir/mkdir.c'
--- uspace/app/bdsh/cmds/modules/mkdir/mkdir.c 2012-05-04 12:30:19 +0000
+++ uspace/app/bdsh/cmds/modules/mkdir/mkdir.c 2015-04-29 00:24:51 +0000
@@ -172,7 +172,7 @@
argc = cli_count_args(argv);
- for (c = 0, optind = 0, opt_ind = 0; c != -1;) {
+ for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) {
c = getopt_long(argc, argv, "pvhVfm:", long_options, &opt_ind);
switch (c) {
case 'p':
=== modified file 'uspace/app/bdsh/cmds/modules/mkfile/mkfile.c'
--- uspace/app/bdsh/cmds/modules/mkfile/mkfile.c 2012-04-02 15:52:07
+0000
+++ uspace/app/bdsh/cmds/modules/mkfile/mkfile.c 2015-04-29 00:25:36
+0000
@@ -125,7 +125,7 @@
argc = cli_count_args(argv);
- for (c = 0, optind = 0, opt_ind = 0; c != -1;) {
+ for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) {
c = getopt_long(argc, argv, "ps:h", long_options, &opt_ind);
switch (c) {
case 'h':
=== modified file 'uspace/app/bdsh/cmds/modules/mount/mount.c'
--- uspace/app/bdsh/cmds/modules/mount/mount.c 2013-09-10 16:32:35 +0000
+++ uspace/app/bdsh/cmds/modules/mount/mount.c 2015-04-29 00:25:33 +0000
@@ -116,7 +116,7 @@
argc = cli_count_args(argv);
- for (c = 0, optind = 0, opt_ind = 0; c != -1;) {
+ for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) {
c = getopt_long(argc, argv, "i:h", long_options, &opt_ind);
switch (c) {
case 'h':
=== modified file 'uspace/app/bdsh/cmds/modules/rm/rm.c'
--- uspace/app/bdsh/cmds/modules/rm/rm.c 2013-06-11 14:18:12 +0000
+++ uspace/app/bdsh/cmds/modules/rm/rm.c 2015-04-29 00:26:54 +0000
@@ -260,7 +260,7 @@
return CMD_FAILURE;
}
- for (c = 0, optind = 0, opt_ind = 0; c != -1;) {
+ for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) {
c = getopt_long(argc, argv, "hvrfs", long_options, &opt_ind);
switch (c) {
case 'h':
=== modified file 'uspace/app/bdsh/cmds/modules/touch/touch.c'
--- uspace/app/bdsh/cmds/modules/touch/touch.c 2012-04-02 15:52:07 +0000
+++ uspace/app/bdsh/cmds/modules/touch/touch.c 2015-04-29 00:27:47 +0000
@@ -89,7 +89,7 @@
DIR *dirp;
- for (c = 0, optind = 0, longind = 0; c != -1; ) {
+ for (c = 0, optreset = 1, optind = 0, longind = 0; c != -1; ) {
c = getopt_long(argc, argv, "c", long_options, &longind);
switch (c) {
case 'c':
_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel