mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Apply a long-forgotten change to make FTP_PASSIVE_MODE just that
much more universal (in FreeBSD, anyway) in taking some of the pain out of firewalls.
This commit is contained in:
parent
5a52948cf6
commit
a378b701cb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19332
@ -86,7 +86,7 @@ main(argc, argv)
|
||||
|
||||
cp = strrchr(argv[0], '/');
|
||||
cp = (cp == NULL) ? argv[0] : cp+1;
|
||||
if (strcmp(cp, "pftp") == 0)
|
||||
if (getenv("FTP_PASSIVE_MODE") || strcmp(cp, "pftp") == 0)
|
||||
passivemode = 1;
|
||||
|
||||
while ((ch = getopt(argc, argv, "dginptvU")) != EOF) {
|
||||
|
Loading…
Reference in New Issue
Block a user