projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
285b446
)
Force optind=1 for libc5 when doing cp in cp_mv.c
author
Eric Andersen
<andersen@codepoet.org>
Sat, 23 Sep 2000 20:55:59 +0000
(20:55 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Sat, 23 Sep 2000 20:55:59 +0000
(20:55 -0000)
cp_mv.c
patch
|
blob
|
history
diff --git
a/cp_mv.c
b/cp_mv.c
index
5e1a841
..
f56c6dd
100644
(file)
--- a/
cp_mv.c
+++ b/
cp_mv.c
@@
-214,6
+214,10
@@
extern int cp_mv_main(int argc, char **argv)
usage(cp_mv_usage[dz_i]);
}
} else { /* (dz_i == is_mv) */
+ /* Initialize optind to 1, since in libc5 optind
+ * is not initialized until getopt() is called
+ * (or until sneaky programmers force it...). */
+ optind = 1;
recursiveFlag = preserveFlag = TRUE;
followLinks = FALSE;
}