ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Spectre2/Mounter.cpp
(Generate patch)

Comparing Spectre2/Mounter.cpp (file contents):
Revision 407 by douglas, 2004-12-30T22:32:13-08:00 vs.
Revision 418 by douglas, 2005-03-02T22:36:24-08:00

# Line 6 | Line 6
6  
7   #include "Mounter.hpp"
8  
9 < Mounter::Mounter(const ext::String& config) : Daemon(), config(config) {}
9 > #include <menes-api/environment.hpp>
10 >
11 > Mounter::Mounter(const api::Path& config) : Daemon(), config(config) {}
12 >
13 > Mounter::~Mounter()
14 > {
15 > #ifdef __FreeBSD__
16 >        api::Posix::CheckError(::unlink(secret.NullTerminate()));
17 > #endif
18 > }
19 >
20 > #ifdef __FreeBSD__
21 > ext::String Mounter::secret(api::TheEnvironment.Get("HOME") + "/.nsmbrc");
22 > #endif
23  
24   void Mounter::load()
25   {
26 <        api::Cerr << "Mounter::load()" << ios::NewLine;
26 >        if (Spectre2::debug) api::Cerr << "Mounter::load()" << ios::NewLine;
27 >
28 > #ifdef __FreeBSD__
29 >        {
30 >                SecretFileWriter file(secret);
31 >
32 >                //
33 >        }
34 > #endif
35          
36          loaded = true;
37   }
38  
39   void Mounter::run()
40   {
41 <        api::Cerr << "Mounter::run()" << ios::NewLine;
41 >        if (Spectre2::debug) api::Cerr << "Mounter::run()" << ios::NewLine;
42  
43          ::sleep(5);
44   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines