FirebirdSQL / firebird

Firebird server, client and tools
https://www.firebirdsql.org/
1.26k stars 216 forks source link

gbak with service_mgr resolves unknown path to the system directory [CORE1243] #1667

Open firebird-automations opened 17 years ago

firebird-automations commented 17 years ago

Submitted by: @reevespaul

A command such as this:

gbak -b -service localhost:service_mgr c:\firebird\examples\employee.fdb employee.fbk

will generate the backup file in the system directory. However, if the service manager is not used the backup file is placed in the current directory (as one would expect.)

I can't see how this could be exploited, but it is certainly not an example of good practice.

firebird-automations commented 17 years ago

Commented by: @dyemanov

Backup via SvcMgr is done by the server in its address space. When it's running as a service, the current directory is %SYSTEM%. So technically, there are no bugs here. But I agree this is not very obvious from the user POV. Any better suggestions?

firebird-automations commented 16 years ago
Modified by: @pcisar Workflow: jira \[ 12010 \] =\> Firebird \[ 15560 \]