Update of /cvsroot/bobs/bobs/inc
In directory sc8-pr-cvs1:/tmp/cvs-serv25180
Modified Files:
class_backup.php
Log Message:
Fix smb shares with spaces in the share name
Index: class_backup.php
===================================================================
RCS file: /cvsroot/bobs/bobs/inc/class_backup.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** class_backup.php 29 Oct 2002 03:15:41 -0000 1.5
--- class_backup.php 2 Dec 2002 00:26:25 -0000 1.6
***************
*** 219,225 ****
$mnt_command = 'mount -t smbfs -o username=' . $this->login . ',password=' . $this->password . ' ';
if ( $this->server_ip == '' ) {
! $mnt_command .= '//' . $this->server . '/' . $this->smb_share . ' ' . $this->processdir . '/mounts/' . $this->server . '/' . $this->share;
} else {
! $mnt_command .= '//' . $this->server_ip . '/' . $this->smb_share . ' ' . $this->processdir . '/mounts/' . $this->server . '/' . $this->share;
}
--- 219,225 ----
$mnt_command = 'mount -t smbfs -o username=' . $this->login . ',password=' . $this->password . ' ';
if ( $this->server_ip == '' ) {
! $mnt_command .= '"//' . $this->server . '/' . $this->smb_share . '" "' . $mountdir . '"';
} else {
! $mnt_command .= '"//' . $this->server_ip . '/' . $this->smb_share . '" "' . $mountdir . '"';
}
|