summaryrefslogtreecommitdiffstats
path: root/source3/lib/popt_common.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:lib: fix const warnings in popt_common.cStefan Metzmacher2014-11-151-3/+6
| | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Nov 15 01:46:13 CET 2014 on sn-devel-104
* param: avoid the use of lp_do_parameter in poptGarming Sam2014-07-071-1/+1
| | | | | | | | | lp_do_parameter ideally should not be used outside of loadparm Change-Id: I310f1a0ff81867151accbda551751bafcdfd8c4d Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
* param: use a single command line set_option in the codeGarming Sam2014-05-071-2/+13
| | | | | | Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* cmdline: Remove dynconfig hooks in command line processingAndrew Bartlett2014-02-121-145/+0
| | | | | | | | | | | | | | | | | | | | | | This removes the ability to set paths like the sbindir, bindir, and changes the tool for setting lockdir statedir etc to be via --option="lock dir=/var/lock". These were originally added by commit 90a6873b0570f2691ba8d8fd11154c856bdd4415 by James Peach <jpeach@samba.org> The important use case, qemu, does not use these options, but specifies these directories via an smb.conf. They are being removed to remove a layer from the loadparm system, now that options can be specified from the command line. It will also make it easier to generate the affected parameters from the XML documentation if this layer of indirection is removed. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Feb 12 16:42:14 CET 2014 on sn-devel-104
* lib: Remove an unused variableVolker Lendecke2013-06-111-1/+0
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jun 11 21:52:09 CEST 2013 on sn-devel-104
* swat: Remove swat.Kai Blin2013-05-181-10/+0
| | | | | | | | Signed-off-by: Kai Blin <kai@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Sat May 18 16:32:38 CEST 2013 on sn-devel-104
* s3:popt_common: Fix password processing.Stefan Metzmacher2012-11-301-11/+2
| | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Nov 30 14:01:08 CET 2012 on sn-devel-104
* s3fs-popt: Add function to burn the commandline password.Andreas Schneider2012-11-081-0/+47
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed by: Jeremy Allison <jra@samba.org>
* s3: Add --pw-nt-hash to popt_common_credentialsVolker Lendecke2012-06-121-0/+5
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* build: Remove sys_open wrapperAndrew Bartlett2012-04-051-1/+1
|
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-091-1/+1
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3-param Remove special case for global_scope()Andrew Bartlett2011-06-091-1/+1
| | | | | | | There is no reason this can't be a normal constant string in the loadparm system. (Past reasons were that we didn't have lp_set_cmdline()) Andrew Bartlett
* s3-param Remove special case for lp_workgroup()Andrew Bartlett2011-06-091-2/+2
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3-lib Use domain in credentials file for domain in credentialsAndrew Bartlett2011-06-091-1/+1
| | | | | | | | | This previously set the workgroup, which is a different thing, but would have been the default if no domain was specified). This more clearly sets the information from the credentials file into the matching field in the credentials structure. Andrew Bartlett
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3:popt: add POPT_COMMON_OPTION to provide only the "--option" featureMichael Adam2011-02-091-0/+5
|
* s3-debug Remove 'AllowDebugChange' and use lp_set_cmdline() insteadAndrew Bartlett2010-11-021-3/+1
| | | | | | | | | By removing this global variable, the API between the two different debug systems is made more similar. Both s3 and s4 now have lp_set_cmdline() which ensures that the smb.conf cannot overwrite these the user-specified log level. Andrew Bartlett
* s3-param: added lp_set_cmdline() and --option= parameterAndrew Tridgell2010-09-021-0/+10
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s3-popt: Only include popt-common.h when needed.Andreas Schneider2010-08-051-0/+1
|
* s3: Add -C (--use-ccache) to popt_common_credentialsVolker Lendecke2010-01-241-1/+6
|
* s3:lib: setup talloc log and abort functionsStefan Metzmacher2009-08-241-0/+7
| | | | metze
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
* Make STATEDIR and CACHEDIR configurable through ./configure and loadparm.cSteven Danneman2009-01-121-0/+20
| | | | | | If they are not explicitely set in either place both will default to LOCKDIR. Signed-off-by: Michael Adam <obnox@samba.org>
* Remove the global "cmdline_auth_info" from source3/lib/util.cVolker Lendecke2008-12-141-21/+38
| | | | This involves changing all our clients, that's why it's so large.
* Fix bug #5928 - Option --version in testparm does not work.Tomasz Krasuski2008-12-051-1/+1
|
* s3: fix a few "shadows a global declaration" warningsTim Prouty2008-11-031-4/+4
|
* popt: add support for setting MODULESDIR via popt_common_dynconfig.Michael Adam2008-08-151-0/+10
| | | | | Michael (This used to be commit 81030e49ce344260d279a3112b13a21ce3520748)
* popt: add a popt_common_debuglevel set of options providing -d|--debuglevelMichael Adam2008-07-151-0/+6
| | | | | Michael (This used to be commit e7d08b673066a63aaa7ab54ac59566ae8a975672)
* Fix client authentication with -P switch in client tools (Bug 5435).Günther Deschner2008-05-051-29/+1
| | | | | Guenther (This used to be commit d077ef64cd1d9bbaeb936566c2c70da508de829f)
* Fix Coverity ID 436Volker Lendecke2008-03-231-0/+5
| | | | (This used to be commit 9e0ee1ad4fe0f0e7dec0b6824ef234147d845b8d)
* popt: Use SMB_CONF_PATH environment var if no other configfile is set.Kai Blin2008-02-041-3/+12
| | | | | | | | | Now --configfile (or -s) will have precedence, if that's not given SMB_CONF_PATH is checked, otherwise the $(CONFIGDIR)/smb.conf default value is used. Thanks to Michael for his comments. (This used to be commit 92a9c6c56fa90aead3b7f4a07bf4f3973ba23555)
* Add general '-e' option to enable smb encryptionJeremy Allison2008-01-051-0/+6
| | | | | | on tools. Jeremy. (This used to be commit 757653966fc1384159bd2d57c5670cd8af0cae96)
* add POPT_COMMON_CONFIGFILE which only provides --configfile (not -s)Stefan Metzmacher2007-12-141-0/+6
| | | | | metze (This used to be commit af3392cc20942158ac9e0a533799c5904ff23347)
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-101-13/+13
| | | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
* We don't need P_GSTRING or P_UGSTRING anymore.Jeremy Allison2007-12-071-1/+1
| | | | | Jeremy. (This used to be commit 78dc75600099b5b3b5a8ecffec747a227ff51d70)
* *Really* fix the no password -N opt :-).Jeremy Allison2007-12-061-1/+1
| | | | | Jeremy. (This used to be commit 187d8a94eae87a32432c7c295698517b6ae31523)
* Fix the '-N' option.Jeremy Allison2007-12-061-1/+1
| | | | | Jeremy. (This used to be commit b91b61b54f02f11d80fc25b268faa354fcd1f6e0)
* Get closer to building with smbmount. Move parameter line changesJeremy Allison2007-12-061-79/+23
| | | | | | into lib/util.c Jeremy. (This used to be commit 6ac5d81655927ba8eabea35adaae5adfcbb821c9)
* Make cmdline_auth_info private to lib/popt_common.c. ProvideJeremy Allison2007-12-061-14/+4
| | | | | | accessor functions. Jeremy. (This used to be commit 420195dd3e8b1b6771ab8be8bc974edaafc0cf8f)
* Remove pstrings from client/client.c by doing a large rewrite.Jeremy Allison2007-12-061-48/+114
| | | | | | Mostly compiles.... Jeremy. (This used to be commit c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6)
* More pstring removal. This one was tricky. I had to addJeremy Allison2007-11-151-9/+17
| | | | | | | one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy. (This used to be commit 1ea3ac80146b83c2522b69e7747c823366a2b47d)
* Remove the silly "user_socket_options" global variableVolker Lendecke2007-11-091-2/+1
| | | | | This is better done with a 'lp_do_parameter(-1, "socket options", ..); (This used to be commit 814bed029efa391e664ac432d0d68dfeab26381f)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-4/+4
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* r24618: move printing out the version string and exit()Stefan Metzmacher2007-10-101-3/+12
| | | | | | | | | into the popt _POST processing. Now 'smbd -V --bla' complains about an unknown option metze (This used to be commit c115de4beac887442a73b4a85367d7b5fded68e6)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-5/+5
| | | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
* r16046: Hmmm. I don't fully understand popt, but this is necessary for ↵Volker Lendecke2007-10-101-1/+1
| | | | | | | | | | | | | | smbclient to show a prompt again :-) James, could you check that this is ok? I think this was part of your Revision 15848. Thanks, Volker (This used to be commit 91534146b4718206f0e2a7f456154a0497277dfd)
* r15848: Introduce commandline options to set the remainder of the parameters inJames Peach2007-10-101-11/+143
| | | | | | dynconfig.c. This is mainly useful for test harness scripts, hence the lack of short options. (This used to be commit bf3b71c84595608d71e0f15a6158adacb295518e)
* source code fix for bug 1095 -- honor the '-l' optionGerald Carter2004-03-261-0/+2
| | | | (This used to be commit ab48af6993b427f525c36aa0ffd57c612c100561)