Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- close stdout and stderr and reopen then as /dev/null when running as
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
bd0e523
..
3244f3f
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-197,7
+197,8
@@
static struct option long_options[] = {
{"port", 1, 0, OPT_PORT},
{0,0,0,0}};
{"port", 1, 0, OPT_PORT},
{0,0,0,0}};
-void parse_arguments(int argc, char *argv[])
+
+int parse_arguments(int argc, char *argv[])
{
int opt;
int option_index;
{
int opt;
int option_index;
@@
-301,7
+302,7
@@
void parse_arguments(int argc, char *argv[])
preserve_hard_links=1;
#else
rprintf(FERROR,"ERROR: hard links not supported on this platform\n");
preserve_hard_links=1;
#else
rprintf(FERROR,"ERROR: hard links not supported on this platform\n");
-
exit_cleanup(1)
;
+
return 0
;
#endif
break;
#endif
break;
@@
-412,10
+413,10
@@
void parse_arguments(int argc, char *argv[])
break;
default:
break;
default:
- /* rprintf(FERROR,"bad option -%c\n",opt); */
- exit_cleanup(1);
+ return 0;
}
}
}
}
+ return 1;
}
}