8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 10:43:02 +01:00
Commit Graph

394 Commits

Author SHA1 Message Date
robocop
2ffcc8b2ce Style. 2009-11-25 04:06:48 +00:00
robocop
3abd26ab61 Comments. 2009-11-24 11:44:53 +00:00
robocop
1386adcf90 Style. 2009-11-16 08:06:31 +00:00
asfernandes
cefe295ad9 Misc 2009-11-14 01:20:33 +00:00
alexpeshkoff
4f54fd68e8 Frontported improvement CORE-2748: allow gsec to grant RDB$ADMIN role in the security database 2009-11-13 19:00:09 +00:00
alexpeshkoff
8bfa0a37a2 Feature CORE-1952: deprecate Implementation IDs, easing new ports; ODS change - BOOT build needed 2009-11-13 18:29:06 +00:00
asfernandes
f2cd6b7ec2 Misc 2009-11-12 01:38:48 +00:00
robocop
08a33d50cc Unfortunately several of these are intertwined:
CORE-462 	 New option in addition to -V switch to specify a custom verbose interval
CORE-2540 	 Utilities need a more coherent way to show help and version
CORE-2541 	 Too many hardcoded messages in nbackup
CORE-2542 	 qli and nbackup accept arbitrary input after the first letter of an option
CORE-2543 	 nbackup may hide the real cause of failure
CORE-2545	 Lack of several validations in gbak
CORE-2547 	 Utilities need to honor their minimum number of characters to recognize an option
CORE-2565 	 Many hardcoded messages in Trace Manager
Moving functions that don't depend on preprocessing to iutils.cpp in isql is the only alien change here.
2009-11-05 09:03:41 +00:00
verbguy
8192bf7723 fix a bunch of 64-bit sign extension warnings, reported by Sun Studio option, -xport64=implicit 2009-11-04 15:15:57 +00:00
alexpeshkoff
fbda7f245e Fixed CORE-2439: Add FIX_FSS_DATA and FIX_FSS_METADATA into the server 2009-10-05 10:26:59 +00:00
asfernandes
dbed23fafc Misc 2009-10-03 00:52:23 +00:00
alexpeshkoff
dbbea09f2b Fixed CORE-2657: Ability to get any permissions (including SYSDBA) working with services 2009-10-02 16:44:00 +00:00
alexpeshkoff
2898df57a1 Fixed assertion in jrd8_service_query=>successful_completion, status was saved in bad place 2009-09-22 13:01:58 +00:00
alexpeshkoff
60a115efc2 Fixed CORE-2601: fine tuning of the installation directories does not work in configure 2009-09-11 10:49:46 +00:00
alexpeshkoff
9629eafccd Use per-thread circular strings buffers instead common and per-attachment combination 2009-09-01 09:20:24 +00:00
asfernandes
5063bafc36 Misc 2009-07-15 03:13:16 +00:00
dimitr
013dd30e99 Totally misc. 2009-07-13 15:19:26 +00:00
alexpeshkoff
caf50ce2b3 Fixed CORE-2526: Server can be shut down disregarding services' connections 2009-07-13 12:09:37 +00:00
hvlad
e2a24eed4d Correct typo in assertion 2009-06-22 07:11:39 +00:00
asfernandes
26c1892310 Misc 2009-06-20 18:46:59 +00:00
robocop
6bfacad413 CORE-2509. Took the opportunity to fix several data types. 2009-06-18 12:07:07 +00:00
robocop
888000e21e Unused function params. 2009-04-26 10:24:44 +00:00
asfernandes
e707efaa1d Misc 2009-04-16 01:09:12 +00:00
robocop
dea57e9099 Get rid of SCO. 2009-04-15 06:29:00 +00:00
asfernandes
f6f364da49 Trim trailling spaces 2009-04-04 16:39:31 +00:00
alexpeshkoff
2c270ab9db Fixed set/drop admins mapping in security2.fdb 2009-03-04 12:44:25 +00:00
asfernandes
b204a1e54f Misc 2009-02-21 17:43:07 +00:00
alexpeshkoff
2ea767b2d1 Ignore exceptions in catch() block - to be reviewed by Vlad 2009-02-19 18:09:01 +00:00
alexpeshkoff
f49f37d700 always uppercase service user name - should make trace happy 2009-02-19 15:41:08 +00:00
alexpeshkoff
0d99a0d6c4 Implemented CORE-2322: added gsec and services support to control SYSDBA-like access of windows domain administrators to security database 2009-02-13 13:05:50 +00:00
robocop
05feaac2d9 Frontport fix for CORE-2313. 2009-02-09 12:22:04 +00:00
asfernandes
628eb5b557 Misc 2009-02-09 01:43:49 +00:00
robocop
a18dc0519f Misc, style, fixing dangerous warnings, constness, etc. 2009-02-08 11:23:46 +00:00
hvlad
a656b92d1d Fixed mistake, noted by Claudio 2009-02-04 13:07:09 +00:00
asfernandes
612c108e3e Misc 2009-02-02 03:35:52 +00:00
hvlad
115602ff06 Trace services support 2009-02-01 22:10:12 +00:00
hvlad
cc26c104f4 Fixed few small glitches 2009-02-01 21:53:58 +00:00
asfernandes
f532f6975e Misc 2009-01-21 15:42:45 +00:00
robocop
3689f15321 Style. 2009-01-20 08:33:59 +00:00
asfernandes
cd010ff939 Misc 2009-01-17 19:07:07 +00:00
robocop
6eba92022d Misc. 2009-01-17 10:33:35 +00:00
alexpeshkoff
f5214489e7 Fixed server shutdown when reading firebird.log 2009-01-16 16:29:12 +00:00
alexpeshkoff
1156d574e0 Optimized services performance when transfering big amounts of data to user 2009-01-16 15:42:33 +00:00
alexpeshkoff
bd680bcb47 Solaris port 2008-12-28 15:26:05 +00:00
asfernandes
5a85277726 Misc 2008-12-25 14:25:01 +00:00
robocop
762d7e1392 Style. 2008-12-25 06:09:37 +00:00
robocop
2fadc0e456 Style. 2008-12-22 09:00:05 +00:00
asfernandes
8fbf0e8e8c Remove trailing spaces (.cpp files) 2008-12-05 01:20:14 +00:00
alexpeshkoff
b3a854629c more checks - thanks to Claudio 2008-11-23 14:04:41 +00:00
alexpeshkoff
0c47a1c508 cleanup 2008-11-20 17:23:06 +00:00
asfernandes
2a757281c6 Misc 2008-10-31 00:02:49 +00:00
alexpeshkoff
cdc4458dec Fixed CORE-2158: AV in client/embedded library when unloading it 2008-10-29 17:05:22 +00:00
alexpeshkoff
9b69175326 Improvement CORE-1107: Services API extension for new (single, full) shutdown modes 2008-09-16 14:19:09 +00:00
asfernandes
7a5b0121d8 Misc 2008-09-14 23:17:58 +00:00
robocop
180916807d Misc. 2008-09-12 11:05:35 +00:00
alexpeshkoff
c0614a1bbc Use more carefull way to merge vectors - never have partially-copied arguments 2008-09-11 13:08:01 +00:00
alexpeshkoff
a3c947ea76 Renamed Service's methods according to Claudio's request to reflect data movement direction 2008-09-11 11:51:25 +00:00
alexpeshkoff
370ed679ec Refactored services code 2008-09-11 09:03:08 +00:00
asfernandes
f49c1afd8f Warning 2008-09-08 15:16:52 +00:00
alexpeshkoff
6e7c4db680 fixed shutdown using fbmgr 2008-09-08 14:07:19 +00:00
asfernandes
0f387a9bee Misc 2008-09-06 18:42:55 +00:00
alexpeshkoff
de1cc4f41a Fixed broken by me this week use of status vector in services - thanks to D.Kovalenko 2008-09-05 11:41:00 +00:00
robocop
b36b4dc179 Misc. 2008-08-31 06:24:24 +00:00
alexpeshkoff
13a15d4bfe 1. Final fix for CORE-1964 - finished vararg cleanup in jrd.
2. Generic cleanup of error reporting functions all around engine.
2008-08-27 12:20:47 +00:00
asfernandes
4aa6ecbaf1 Misc 2008-07-06 18:08:23 +00:00
alexpeshkoff
5ac5869661 CORE-1964 - stop vararg mess when reporting errors. Use special class for it. More (ERR_post cleanup) to come. 2008-07-03 12:02:54 +00:00
alexpeshkoff
a2e416210b Fixed CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid.
Also cleaned up use of gds__log() in a few places.
2008-06-26 09:47:59 +00:00
robocop
6a439b2866 Solved CORE-1911 in a simple albeit not very clever way.
svc.cpp only needs to read the gbak switches table, but burp.cpp needs to toggle the in_sw_state field, hence I made the global instance a constant and copied it to a local array inside burp.cpp's "gbak" function.
2008-05-23 13:05:35 +00:00
alexpeshkoff
796e02d2a5 1. Cleanup - use constants ISC_USER/ISC_PASSWORD instead of always repeated string constants.
2. Let services uses environment and OS auth when run embedded.
2008-05-19 13:58:37 +00:00
alexpeshkoff
990c259373 Fixed CORE-1843: gbak with service manager don't allow path with space 2008-05-16 14:08:45 +00:00
alexpeshkoff
86cd8cb6b3 1. Added parameter 'shutdown reason' to fb_shutdown() API call. It's passed to shutdown
callback function, and helps to take correct action in it. This fixes CORE-1827: Win32
Embedded Server should pass control to application before calling exit(3).
2. Removed unneeded any more flag in isql and qli, used earlier to distinguish between
kinds of shutdown.
2008-05-16 11:31:57 +00:00
alexpeshkoff
7ff8e4d2be Fixed CORE-1879: Server uses wrong authentication method 2008-05-04 13:38:02 +00:00
robocop
119b7f1fe0 Misc. 2008-05-01 10:58:39 +00:00
alexpeshkoff
b96cae73fb Use internal trusted authentication in services 2008-04-21 16:29:04 +00:00
asfernandes
d75951e8e5 Misc 2008-04-18 01:37:44 +00:00
dimitr
c255169fe9 1) Simplified the internal provider API a little.
2) Passed the original filename (possibly an alias) via DPB. This way it can be transmitted through the remote subsystem.

Hopefully, this should fix CORE-1105, CORE-1390 and CORE-1566 at once.
Although a better hope would be that it won't break anything else :-)
2008-04-17 14:05:44 +00:00
alexpeshkoff
ed638ceb03 Fixed CORE-1845: Some standard calls show server installation directory to regular users 2008-04-17 13:50:14 +00:00
asfernandes
f0299cfb29 Misc 2008-04-03 01:11:26 +00:00
alexpeshkoff
aafed20fe1 Fixed problems with shutting down actively running engine - related with CORE-1805. 2008-04-02 14:26:17 +00:00
alexpeshkoff
c1e726d7fa fixed service status vector contents - related with CORE-1805 2008-03-27 16:36:03 +00:00
alexpeshkoff
ed25245303 Applied shutdown changes, discussed in fb-devel a week ago. 2008-03-17 16:49:47 +00:00
dimitr
afb970dba1 1) Cleanup.
2) Catch exceptions in AST routines.
2008-03-12 16:53:57 +00:00
robocop
dadefcb479 Binary things are UCHAR. Let's try to fix them from the innermost layer to the outermost layer until we can fix the public interfaces. 2008-03-10 09:31:40 +00:00
dimitr
d597154a4b 1) Added timeout value to the shutdown API call.
2) Fixed the slow fbembed detach noticed by Claudio and Vlad.
3) Cleanup.
2008-03-04 13:27:02 +00:00
alexpeshkoff
7dacbbbd74 Make fb_disconnect_transaction, fb_shutdown and fb_shutdown_callback public API calls.
Related cleanup.
2008-03-03 17:47:09 +00:00
dimitr
5ca270c096 1) Cleanup SERVER_SHUTDOWN.
2) Make the engine shutdown asynchronous.
2008-02-29 12:47:20 +00:00
robocop
95e59f72b5 Undo the check for 255 bytes in JRD_num_attachments (let the callers handle long paths).
Fix some memory leaks (at least one of them signaled by myself years ago) when calling JRD_num_attachments.
Introduce an enumeration for the "flag" parameter in the same function.
2008-02-21 04:24:42 +00:00
asfernandes
1ce834c8dc Misc 2008-02-14 01:31:15 +00:00
dimitr
61b19f7c07 Misc. 2008-02-13 16:52:29 +00:00
alexpeshkoff
dbf65528b8 Fixed CORE-1726: isc_service_start failed, use InitHolder for SecurityDatabase in services too. 2008-02-13 13:10:23 +00:00
alexpeshkoff
fad180bed8 test for out-of-memory condition has no sense here any more 2008-02-11 09:59:35 +00:00
alexpeshkoff
a9155f7e51 avoid gds__alloc/free in services 2008-02-11 09:55:16 +00:00
alexpeshkoff
134bc0ed7b Fixed CORE-1726: isc_service_start failed 2008-02-08 16:57:00 +00:00
alexpeshkoff
f6416546e8 removed old comments: they are wrong now 2008-02-04 12:01:26 +00:00
robocop
4c3381ef6b Style, constness and macro cleanup. 2008-02-03 10:41:44 +00:00
asfernandes
b39ac40c9d Misc 2008-02-03 02:32:39 +00:00
alexpeshkoff
8901a0e003 Services cleanup - make class Service traditional C++ class 2008-02-02 18:33:37 +00:00
dimitr
ed3817f6b6 Sigh, we have to release the dbb when doing authentication. 2008-01-26 17:33:57 +00:00
dimitr
43594ed53a Major synchronization changes. Description of the commit will be posted to fb-devel. 2008-01-26 13:17:19 +00:00
alexpeshkoff
39896cb955 Fixed CORE-1671: atexit() calls in client libraries cause segfaults
and CORE-1079: Every attach of fbclient/fbembed library leaks 64KB of memory

To do it:
- created new template GlobalPtr, controlling access to destructors of global objects.
- applied it to global objects.

Also some related cleanup.
2008-01-23 15:52:40 +00:00
dimitr
6666fd1e4a The merge continued. 2008-01-16 09:48:41 +00:00
alexpeshkoff
467b4d7b49 Removed accidentially added scope in switch 2008-01-09 09:24:58 +00:00
alexpeshkoff
69030e446e Fixed CORE-1679: Gagbage bytes in isc_service_query() output 2008-01-09 09:09:24 +00:00
alexpeshkoff
ea09e47c86 Make SS kill itself on unix platforms when doing shutdown.
It helps with correct semaphores cleanup, important for some platforms.
2008-01-04 17:54:40 +00:00
alexpeshkoff
3e0d8ebc5b Fixed CORE-1603: Possible buffer overflow with long user name 2007-11-19 16:18:59 +00:00
alexpeshkoff
a80dd39b11 Fixed CORE-1593: Full domain user name can be longer than 31 char(for trusted authentication) 2007-11-15 12:48:24 +00:00
asfernandes
4161dc725c Misc 2007-10-10 02:06:20 +00:00
alexpeshkoff
2366a0d64c Fixed use of isc_spb_dbname in isc_action_svc_display_user 2007-10-08 13:35:54 +00:00
robocop
3a7d93f658 Misc tweaks with Firebird::string. 2007-08-26 09:53:08 +00:00
alexpeshkoff
ea8ba3370d Cleaned up mutexes - removed MUTX_T and related macros 2007-06-06 12:37:24 +00:00
alexpeshkoff
f3a8b2a9e5 Fixed CORE-1302: Races during service startup 2007-06-05 07:14:01 +00:00
alexpeshkoff
97336639d7 Fixes to gsec-related part of services manager 2007-04-27 15:07:42 +00:00
alexpeshkoff
3a772eaf58 Fixed CORE-1232 - wrong behaviour of services manager during backup/restore operations 2007-04-26 14:59:46 +00:00
alexpeshkoff
e2ab4df819 Fixed CORE-787 - disabled non-SYSDBA use of some parts of API 2007-04-19 07:30:00 +00:00
alexpeshkoff
1932c8f4e7 added switch -trusted to most of firebird utilities 2007-04-07 08:47:58 +00:00
robocop
e71a03261c This is the full SafeArg implementation for getting rid of the fixed parameter types in the messages db. Alas, the legacy messages (before FB2.1) can't be changed in number of arguments neither the types of arguments sent by callers of the MsgPrint family or the fb_msg_format functions can be changed because old clients know these legacy messages and would crash. 2007-03-28 04:20:36 +00:00
alexpeshkoff
60e06d5c99 Fixes for CORE-1148 and CORE-1149 2007-03-02 09:04:30 +00:00
robocop
409ff041dd Misc and replaced "IB" by "FB" where it made sense to me. 2007-02-11 09:04:54 +00:00
alexpeshkoff
58c1e0e687 misc 2006-12-10 13:43:31 +00:00
alexpeshkoff
1a4652f01a Trusted authentication for windows 2006-12-08 18:38:15 +00:00
dimitr
e4fffd425f 1) Updated monitoring implementation.
2) Cleanup.
2006-10-30 12:39:08 +00:00
aafemt
e6151fd57f Warnings 2006-09-01 10:51:57 +00:00
asfernandes
020a4f01a1 Misc 2006-07-28 02:17:11 +00:00
asfernandes
ccbaf55533 Misc 2006-07-28 01:44:36 +00:00
alexpeshkoff
028ab3c597 fixed AV related with SVC_TRMNTR in services 2006-07-27 14:24:09 +00:00
robocop
db5f743685 Misc. 2006-06-16 08:13:20 +00:00
alexpeshkoff
b056a118b5 1. Avoid use of STL
2. Reworked exceptions to make status_exception always hold correct status vector
3. Avoid use of RTTI
2006-05-19 15:17:02 +00:00
hvlad
f94b8bd641 Merge B1_5_Remote_LazyPort branch into HEAD 2006-05-01 22:23:31 +00:00
alexpeshkoff
42bee9d066 make service output look the same for both CS and SS 2006-04-06 13:30:49 +00:00
robocop
e5338ba1ed Only strcmp and strncmp have common names across all plartforms. Cater for differences in strcasecmp/stricmp and strncasecmp/strnicmp. 2006-03-25 07:08:00 +00:00
robocop
1f84bac700 Mark unused data members, discover more code associated to conditional compilation, clean some places, replace custom loops by memcpy and memset when possible, etc. 2006-02-23 05:08:26 +00:00
robocop
97122ee389 Replace jrd_time.h by our timestamp.h, but I left timestamp.h's #includes commented where it *seemed* not necessary. 2006-02-03 08:39:36 +00:00
alexpeshkoff
0f41073304 fixed server properties info using ibExpert 2005-12-19 16:24:55 +00:00
alexpeshkoff
a09a871b83 report error when user requested unknown info 2005-12-11 13:42:50 +00:00
dimitr
2e5993a639 Fixed regressions with SAPI. 2005-12-10 10:15:56 +00:00
robocop
97f9f7b4ca Misc. 2005-12-09 05:00:32 +00:00
alexpeshkoff
db126f977f fixed problem with isc_spb_res_access_mode 2005-12-08 15:33:03 +00:00
dimitr
e76dfb0be7 Restored the old code as Alex has already fixed the issue. 2005-12-04 12:30:34 +00:00
dimitr
23f3cc8656 Fixed restore process. 2005-12-03 10:22:58 +00:00
hvlad
c0e41346ae Allocate strings members of Service from the same pool as Service itself 2005-12-02 22:19:57 +00:00
alexpeshkoff
f5871b1929 fixed problems, caused by my previous commit 2005-12-02 16:54:04 +00:00
alexpeshkoff
ac762cc3b6 removed unneeded assertion 2005-12-01 17:39:12 +00:00
robocop
63720ed37d Finish incomplete change and comment an assertion that doesn't compile with the new code. 2005-12-01 05:34:18 +00:00
alexpeshkoff
48b2e0baaf use ClumpletReader in SVC_start 2005-11-30 17:32:11 +00:00
alexpeshkoff
62a24d46e4 1. Moved data structures, written to database file, into ods.h.
2. Added new types of clumplets to ClumpletReader and ClupmletWriter.
3. Applied modified ClumpletReader and ClupmletWriter to /remote and partially /jrd.
4. Added active protection from remote brute-force attack to services API.
2005-11-27 20:53:09 +00:00
alexpeshkoff
03c46a13d4 fixed work with embedded service manager 2005-11-20 15:40:54 +00:00
aafemt
d774e43c03 Fix MinGW SS build 2005-10-22 12:35:04 +00:00
alexpeshkoff
46dd9a90d6 1. reanimated -database switch in gsec\n 2. isc_file.cpp should now compile at AIX\n 3.Use PathName to store database name in jrd.cpp during attach/create 2005-09-30 16:16:39 +00:00
alexpeshkoff
5274a7361c Security fix - temporary disable logins for clients, making too many wrong attempts to login 2005-08-23 06:52:55 +00:00
kkuznetsov
36402e1862 This patch from Dimitry Sibiryakov disables services at boot time.
This let me compile on Solaris
2005-08-18 12:33:48 +00:00