aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/anonFTP.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC revisions 1.36 and 1.37:Ceri Davies2006-01-201-3/+3
| | | | | | | | | | | | | | r1.36: Correct obsolete chown syntax. r1.37: If sysinstall was used to configure an anonymous FTP area, it was possible for information to be copied from the group file to the group file in the FTP area. This patch based on a patch from Zak Johnson <zakj at nox dot cx>. Notes: svn path=/stable/6/; revision=154573
* Various updates to the anonymous ftp support:John Baldwin2004-11-161-11/+12
| | | | | | | | | | | | | | | | - Allow the upload directory to be optional. If the upload directory field is cleared to the empty string then no directory will be created. - Don't create a bin/ subdirectory in ftp's home dir containing ls(1) and date(1) as ftpd(8) no longer requires it. - Create a pwd.db file in etc/ instead of a passwd file. - Ignore NIS compat entries in /etc/group and /etc/master.passwd when building the anonymous files. PR: bin/60662 Submitted by: Olafur Osvaldsson oli at isnic dot is Notes: svn path=/head/; revision=137781
* Fixed assorted misuses of NULL in integer context.Bruce Evans2004-03-111-1/+1
| | | | Notes: svn path=/head/; revision=126844
* Typo: s/seperately/separatelyJens Schweikhardt2002-08-061-1/+1
| | | | | | | | | PR: misc/41235 Submitted by: Fesskat Tudeer <freebsd-fesskat@fesskat.org> MFC after: 3 days Notes: svn path=/head/; revision=101441
* Silence warnings :Murray Stokely2001-09-221-2/+2
| | | | | | | | | Use static as necessary. Use __unused as necessary. sizeof(int) != sizeof(void *) Notes: svn path=/head/; revision=83842
* Compensate for default disabling of network services in inetd.conf(5)Robert Watson2001-08-021-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by providing the opportunity to edit inetd.conf during the system installation process. The following modifications were made: (1) Expand the Anonymous FTP description dialog to indicate that inetd and ftpd must be enabled before it can be used. (2) Introduce a new configInetd() pair of dialogs, the first describing inetd, giving a couple of examples of services that require it, and hinting at potential risk, then asking the user if they wish to enable it. The second indicates that inetd.conf must be configured to enabled specific services, and asks if the user would like to load inetd.conf into the editor to modify it. Add this configuration action to the index. There are some further improvements that might be considered: (1) Provide a more inetd.conf-specific configuration tool that speaks inetd.conf(5). However, this is made difficult by the "yet another configuration format" nature of inetd.conf, as well as its use of commenting to disable services, rather than an in-syntax way to disable a service without commenting it out. Submissions here would probably be welcome. (2) There's some overlap between settings in the somewhat obtuse Security Profile mechanism and other settings, including the inetd setting, and NFS server configuration. As features become individually tunable, they should probably be removed from the security profile mechanism. Otherwise, somewhat counter-intuitively, sysinstall (in practice) queries multiple times whether inetd, nfsd, etc, should be enabled/disabled. A possible future direction might be to drive profiles not by degree of paranoia, rather, the set of services desired. Or simply to remove the Security Profile mechanism and resort to feature-driven configuration. Reviewed by: imp, chris, jake, nate, -arch, -stable Notes: svn path=/head/; revision=81023
* Mark relevant functions __printflike()/__printf0like() and silence some ofKris Kennaway2001-07-051-1/+1
| | | | | | | | | the non-constant format string warnings. MFC after: 1 week Notes: svn path=/head/; revision=79304
* Argh, this is what I get for testing, making one last "harmless cosmeticJordan K. Hubbard2000-01-251-1/+1
| | | | | | | | tweak" and then committing. /me got what he deserved, an embarassing build failure. Notes: svn path=/head/; revision=56606
* o Fix http proxy code for various extentions and deal with FTP archiveJordan K. Hubbard2000-01-251-3/+2
| | | | | | | | | | | | format changes. o Make anonymous ftp setup more analy retentive. PR: 16070 Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de> Notes: svn path=/head/; revision=56573
* In retrospect, msgNotify() should leave its contents on the screenJordan K. Hubbard1999-12-171-2/+2
| | | | | | | | longer to give the user something to look at while things are happening. Change it to do so and insert the appropriate screen saves elsewhere. Notes: svn path=/head/; revision=54722
* Completely rip-out and redesign sysinstall's refresh model as wellJordan K. Hubbard1999-12-141-7/+6
| | | | | | | | | | | | | | | as redoing all the menus to have proper, or at least non-hallucinogenic, keyboard accelerators. This requires my recent update to libdialog to work properly and will probably also exhibit some other "interesting" behavior while the last few missing screen clears are found (which is why I'm not going to MFC immediately). At least now, however, sysinstall does not gratuitously redraw random screens at the drop of a hat and drive serial console installers out of their minds. Notes: svn path=/head/; revision=54587
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* Totally change the way variables are accounted for in sysinstall.Jordan K. Hubbard1999-02-051-2/+2
| | | | | | | | | | | Now we know which variables are internal and which need to be backed to /etc/rc.conf.site. rc.conf is not touched now. Also kget kernel change information back properly and set up a loader.rc file to use it. Notes: svn path=/head/; revision=43685
* Sync up to current state of development.Jordan K. Hubbard1997-04-021-2/+2
| | | | Notes: svn path=/head/; revision=24548
* Add a registration screen so we can finally start counting our little userJordan K. Hubbard1997-03-091-1/+2
| | | | | | | puppies. Notes: svn path=/head/; revision=23588
* It's easier to go forwards than backwards with this, and the RELENG_2_1_0Jordan K. Hubbard1997-02-071-1/+1
| | | | | | | | sysinstall was already broken (I think there's a PR for this somewhere). This will require some additional changes elsewhere, like bringing in pw. Notes: svn path=/head/; revision=22388
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Do something I've wanted to do for quite some time - collapse all theJordan K. Hubbard1997-01-031-162/+25
| | | | | | | | common layout code into some work functions and make all the layout-using routine adopt them. Also reorganize includes and generally clean up. Notes: svn path=/head/; revision=21243
* As Paul has just pointed out, much of my strncpy() usage was eitherJordan K. Hubbard1996-12-091-9/+9
| | | | | | | | | | bogus or overly complex and really needed to be done more consistently and sanely throughout - no question about it. Done. Suggested-By: Paul Traina <pst@Shockwave.COM> Notes: svn path=/head/; revision=20247
* Close a security hole in anonymous ftp setup.Jordan K. Hubbard1996-09-061-2/+2
| | | | | | | Submitted-By: Jason Garman <garman@phs.k12.ar.us> Notes: svn path=/head/; revision=18072
* Simplify some dialogs on the basis of my changes to ui_objects.c in libdialog.Jordan K. Hubbard1996-09-011-30/+7
| | | | | | | Also update copyright notices. Notes: svn path=/head/; revision=17985
* Try to make screen update more efficient (less flickering) by moreJordan K. Hubbard1996-08-031-4/+3
| | | | | | | judicious use of dialog_clear_norefresh(). Notes: svn path=/head/; revision=17404
* Fix an ancient index list bug.Jordan K. Hubbard1996-04-281-7/+8
| | | | | | | | Make FTP re-initializion work. Fix fix fix. Notes: svn path=/head/; revision=15419
* Move some of functions around in order to make this stuff easierJordan K. Hubbard1996-04-281-4/+3
| | | | | | | to work on. Notes: svn path=/head/; revision=15417
* Bring this into sync.Jordan K. Hubbard1996-04-231-14/+5
| | | | | | | | | | | | | I still have a _very very annoying_ display bug which occurs when a menu item causes a submenu to be displayed - the screen repaints for the original menu (which is restored upon return from the submenu) are off by about 4 characters. I've tried restoring the screen, the cursor position, you name it - same deal. Grrrr! This commit is my first step in trying to get someone else to help me look into this one since I'm just tearing my hair out at this point! Notes: svn path=/head/; revision=15355
* 1. Update all the copyrights to delete useless clauses 3 and 4.Jordan K. Hubbard1996-04-131-22/+21
| | | | | | | | 2. Change more of the menu code over to new system. 3. Streamline label editor. Notes: svn path=/head/; revision=15242
* Major surgery.Jordan K. Hubbard1996-04-071-2/+2
| | | | | | | | | | | | | | | | | | 1. Use new dialog menu hacks (no strings, just arrays of dialogMenuItem structs) so that I can create composite menus with radio/checkbox/... items in them, removing some long-standing UI bogons in various menus. This work isn't finished yet, but will be done in two phases. This is phase one. 2. Remove all the script installation stuff. I never got time to document it, it was arcane and it just complicated much of the code. There are better ways of doing this if I want to do auto-driven installations later. 3. Remove much dead code and otherwise attempt to remove as much historical grot as possible so that this code is easier to hack on. This is also a two-stage process, phase one of which is now complete. Notes: svn path=/head/; revision=15091
* Make the editor a selectable option. Some people don't care for `ee'!Jordan K. Hubbard1996-03-231-2/+2
| | | | Notes: svn path=/head/; revision=14763
* Lots of fixes:Jordan K. Hubbard1996-03-181-59/+57
| | | | | | | | | | | | | | | | | | | 1. Revamp package installer to use new dependency lists and also pkg_add's new `read from stdin' mode to prevent a copy of the package from hitting the disk unnecessarily. 2. More fixes for running "not as init" - don't get upset if CDROM already mounted, do the right thing instead. 3. If running as init, assume first-time install and _don't show the (W)rite option in the fdisk screen. 4. Many other little tweaks, some of which will have to wait for fuller testing until I can create a boot floppy (testing certain system-destroying features of sysinstall can be a royal pain). Expect some more commits. Notes: svn path=/head/; revision=14670
* Miscellaneous cleanup before big round of menu restructuring (to use newJordan K. Hubbard1996-03-021-216/+217
| | | | | | | libdialog features). Notes: svn path=/head/; revision=14321
* Make editor start on right screen for anonFTP setup.Jordan K. Hubbard1995-11-121-2/+7
| | | | | | | Don't clobber mediaDevice if post-configuring networking from CDROM. Notes: svn path=/head/; revision=12224
* Add verbosity to add in tracking a mystery sig-11 with this..Jordan K. Hubbard1995-11-111-59/+43
| | | | Notes: svn path=/head/; revision=12214
* Fix some missing parameters to the anon ftp setup area.Jordan K. Hubbard1995-11-111-5/+5
| | | | Notes: svn path=/head/; revision=12213
* Various cosmetic tweaks.Jordan K. Hubbard1995-11-111-5/+5
| | | | Notes: svn path=/head/; revision=12210
* Tweaks to anon ftp setup.Jordan K. Hubbard1995-11-101-2/+9
| | | | | | | Submitted by: coranth Notes: svn path=/head/; revision=12182
* o Now that Coranth has made the anonymous FTP configuration not use adduser,Jordan K. Hubbard1995-11-091-0/+491
bring it back. o Simplify the vsystem() call by ripping out a good deal of the extraneous grot. Notes: svn path=/head/; revision=12156