diff options
-rw-r--r-- | cp_mv.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -214,6 +214,10 @@ extern int cp_mv_main(int argc, char **argv) | |||
214 | usage(cp_mv_usage[dz_i]); | 214 | usage(cp_mv_usage[dz_i]); |
215 | } | 215 | } |
216 | } else { /* (dz_i == is_mv) */ | 216 | } else { /* (dz_i == is_mv) */ |
217 | /* Initialize optind to 1, since in libc5 optind | ||
218 | * is not initialized until getopt() is called | ||
219 | * (or until sneaky programmers force it...). */ | ||
220 | optind = 1; | ||
217 | recursiveFlag = preserveFlag = TRUE; | 221 | recursiveFlag = preserveFlag = TRUE; |
218 | followLinks = FALSE; | 222 | followLinks = FALSE; |
219 | } | 223 | } |