* smbfs.c (myumask): Removed. It is only written and never read.
(smbfs_init): Use PATH_SEP_STR and reformat.
Этот коммит содержится в:
родитель
e26cef8825
Коммит
c29498db11
@ -1,3 +1,8 @@
|
||||
2002-08-06 Andrew V. Samoilov <kai@cmail.ru>
|
||||
|
||||
* smbfs.c (myumask): Removed. It is only written and never read.
|
||||
(smbfs_init): Use PATH_SEP_STR and reformat.
|
||||
|
||||
2002-08-01 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* mcserv.c: Remove all references to MAD.
|
||||
|
@ -60,7 +60,6 @@ static uint32 err;
|
||||
/* stuff that is same with each connection */
|
||||
extern int DEBUGLEVEL;
|
||||
extern pstring myhostname;
|
||||
static mode_t myumask = 0755;
|
||||
extern pstring global_myname;
|
||||
static int smbfs_open_connections = 0;
|
||||
static gboolean got_user = FALSE;
|
||||
@ -260,9 +259,9 @@ smbfs_set_debug(int arg)
|
||||
static int
|
||||
smbfs_init (vfs * me)
|
||||
{
|
||||
char *servicesf = CONFIGDIR "/smb.conf";
|
||||
char *servicesf = CONFIGDIR PATH_SEP_STR "smb.conf";
|
||||
|
||||
DEBUGLEVEL = 0;
|
||||
/* DEBUGLEVEL = 4; */
|
||||
|
||||
setup_logging ("mc", True);
|
||||
TimeInit ();
|
||||
@ -279,11 +278,10 @@ smbfs_init(vfs *me)
|
||||
codepage_initialise (lp_client_code_page ());
|
||||
|
||||
load_interfaces ();
|
||||
myumask = umask(0);
|
||||
umask(myumask);
|
||||
|
||||
if (getenv ("USER")) {
|
||||
char *p;
|
||||
|
||||
pstrcpy (username, getenv ("USER"));
|
||||
got_user = TRUE;
|
||||
DEBUG (3, ("smbfs_init(): $USER:%s\n", username));
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user