lib/vpwentry/export_env.cc
changeset 2 b3afb9f1e801
parent 0 6f7a81934006
equal deleted inserted replaced
1:30113bfbe723 2:b3afb9f1e801
    25 }
    25 }
    26 
    26 
    27 bool vpwentry::export_env() const
    27 bool vpwentry::export_env() const
    28 {
    28 {
    29   return presetenv("VUSER=", name) == 0 &&
    29   return presetenv("VUSER=", name) == 0 &&
    30     presetenv("MAILDIR=", mailbox) == 0 &&
    30     presetenv("MAILDIR=", directory) == 0 &&
    31     presetenv("VUSER_CTIME=", ctime) == 0 &&
    31     presetenv("VUSER_CTIME=", ctime) == 0 &&
    32     presetenv("VUSER_EXPIRY=", expiry) == 0 &&
    32     presetenv("VUSER_EXPIRY=", expiry) == 0 &&
    33     presetenv("VUSER_MSGCOUNT=", msgcount) == 0 &&
    33     presetenv("VUSER_MSGCOUNT=", msgcount) == 0 &&
    34     presetenv("VUSER_MSGSIZE=", msgsize) == 0 &&
    34     presetenv("VUSER_MSGSIZE=", msgsize) == 0 &&
    35     presetenv("VUSER_PERSONAL=", personal) == 0 &&
    35     presetenv("VUSER_PERSONAL=", personal) == 0 &&
    36     presetenv("VUSER_HARDQUOTA=", hardquota) == 0 &&
    36     presetenv("VUSER_HARDQUOTA=", hardquota) == 0 &&
    37     presetenv("VUSER_SOFTQUOTA=", softquota) == 0 &&
    37     presetenv("VUSER_SOFTQUOTA=", softquota) == 0 &&
       
    38     presetenv("VUSER_HAS_MAILBOX=", has_mailbox) == 0 &&
    38     presetenv("VUSER_MAILBOX_ENABLED=", is_mailbox_enabled) == 0;
    39     presetenv("VUSER_MAILBOX_ENABLED=", is_mailbox_enabled) == 0;
    39   //for(mystring_iter iter(data.str(), '\0'); iter; ++iter)
    40   //for(mystring_iter iter(data.str(), '\0'); iter; ++iter)
    40   //  presetenv("VUSER_"+...+"=", *iter);
    41   //  presetenv("VUSER_"+...+"=", *iter);
    41 }
    42 }