MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / add_working_directory

Function add_working_directory

src/remote/client/interface.cpp:7780–7813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7778
7779
7780static void add_working_directory(ClumpletWriter& dpb, const PathName& node_name)
7781{
7782/************************************************
7783 *
7784 * a d d _ w o r k i n g _ d i r e c t o r y
7785 *
7786 ************************************************
7787 *
7788 * Functional description
7789 * Add parameters to a dpb or spb to describe client-side
7790 * settings that the server should know about.
7791 *
7792 ************************************************/
7793 if (dpb.find(isc_dpb_working_directory))
7794 {
7795 return;
7796 }
7797
7798 PathName cwd;
7799
7800 // for WNet local node_name should be compared with "\\\\." ?
7801 if (node_name == "localhost")
7802 {
7803 fb_utils::getCwd(cwd);
7804
7805 ISC_systemToUtf8(cwd);
7806 ISC_escape(cwd);
7807
7808 if (!dpb.find(isc_dpb_utf8_filename))
7809 ISC_utf8ToSystem(cwd);
7810 }
7811
7812 dpb.insertString(isc_dpb_working_directory, cwd);
7813}
7814
7815
7816static void authenticateStep0(ClntAuthBlock& cBlock)

Callers 2

attachMethod · 0.85
createMethod · 0.85

Calls 6

getCwdFunction · 0.85
ISC_systemToUtf8Function · 0.85
ISC_escapeFunction · 0.85
ISC_utf8ToSystemFunction · 0.85
findMethod · 0.45
insertStringMethod · 0.45

Tested by

no test coverage detected