| 7778 | |
| 7779 | |
| 7780 | static 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 | |
| 7816 | static void authenticateStep0(ClntAuthBlock& cBlock) |
no test coverage detected