Added
Link Here
|
1 |
--- scponly.c 2008/01/15 06:30:20 1.45 |
2 |
+++ scponly.c 2008/03/08 18:57:48 1.46 |
3 |
@@ -91,16 +91,18 @@ |
4 |
|
5 |
#ifdef RSYNC_COMPAT |
6 |
struct option rsync_longopts[] = { |
7 |
+ /* options we need to know about that are safe */ |
8 |
+ {"server", 0, 0, (int)'s'}, |
9 |
/* I use 'e' for val here because that's what's listed in cmd_arg_t->badarg */ |
10 |
- {"rsh", 1, 0, (int)'e'}, |
11 |
+ {"rsh", 1, 0, (int)'r'}, |
12 |
/* the following are disabled because they use daemon mode */ |
13 |
- {"daemon", 0, 0, (int)'e'}, |
14 |
- {"rsync-path", 1, 0, (int)'e'}, |
15 |
- {"address", 1, 0, (int)'e'}, |
16 |
- {"port", 1, 0, (int)'e'}, |
17 |
- {"sockopts", 1, 0, (int)'e'}, |
18 |
- {"config", 1, 0, (int)'e'}, |
19 |
- {"no-detach", 0, 0, (int)'e'}, |
20 |
+ {"daemon", 0, 0, (int)'d'}, |
21 |
+ {"rsync-path", 1, 0, (int)'d'}, |
22 |
+ {"address", 1, 0, (int)'d'}, |
23 |
+ {"port", 1, 0, (int)'d'}, |
24 |
+ {"sockopts", 1, 0, (int)'d'}, |
25 |
+ {"config", 1, 0, (int)'d'}, |
26 |
+ {"no-detach", 0, 0, (int)'d'}, |
27 |
{ NULL, 0, NULL, 0 }, |
28 |
}; |
29 |
#endif |
30 |
@@ -157,7 +159,7 @@ |
31 |
{ PROG_SCP, 1, 1, "SoF", "dfl:prtvBCc:i:P:q1246S:o:F:", empty_longopts }, |
32 |
#endif |
33 |
#ifdef RSYNC_COMPAT |
34 |
- { PROG_RSYNC, 1, 0, "e", "e:", rsync_longopts }, |
35 |
+ { PROG_RSYNC, 1, 0, "rde", "e::", rsync_longopts }, |
36 |
#endif |
37 |
#ifdef UNISON_COMPAT |
38 |
{ PROG_UNISON, 0, 0, "-rshcmd", NULL, empty_longopts }, |