Changeset 4308 in subversion


Ignore:
Timestamp:
Dec 6, 2010 3:31:03 AM (3 years ago)
Author:
alec
Message:
  • Fix usage of configured temp_dir instead of /tmp (#1487447)
Location:
trunk/plugins/password
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/password/drivers/sql.php

    r4199 r4308  
    3434    if ($err = $db->is_error()) 
    3535        return PASSWORD_ERROR; 
    36      
     36 
    3737    // crypted password 
    3838    if (strpos($sql, '%c') !== FALSE) { 
     
    5757        if (!($method = $rcmail->config->get('password_dovecotpw_method'))) 
    5858            $method = 'CRAM-MD5'; 
    59         $tmpfile = tempnam('/tmp', 'roundcube-'); 
     59 
     60        // use common temp dir 
     61        $tmp_dir = $rcmail->config->get('temp_dir'); 
     62        $tmpfile = tempnam($tmp_dir, 'roundcube-'); 
     63 
    6064        $pipe = popen("'$dovecotpw' -s '$method' > '$tmpfile'", "w"); 
    6165        if (!$pipe) { 
  • trunk/plugins/password/package.xml

    r4291 r4308  
    3131- hMail driver: HTML tags in logged messages should be stripped off (#1487099) 
    3232- Chpasswd driver: add newline at end of input to chpasswd binary (#1487141) 
     33- Fix usage of configured temp_dir instead of /tmp (#1487447) 
    3334    </notes> 
    3435        <contents> 
Note: See TracChangeset for help on using the changeset viewer.