Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b8dd37d2
Commit
b8dd37d2
authored
Aug 09, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't create the WINEPREFIX directory if it doesn't exist.
parent
e994d503
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
client.c
scheduler/client.c
+0
-1
request.c
server/request.c
+5
-5
No files found.
scheduler/client.c
View file @
b8dd37d2
...
...
@@ -382,7 +382,6 @@ const char *get_config_dir(void)
strcpy
(
confdir
,
home
);
strcat
(
confdir
,
CONFDIR
);
}
mkdir
(
confdir
,
0755
);
/* just in case */
}
return
confdir
;
}
...
...
server/request.c
View file @
b8dd37d2
...
...
@@ -41,7 +41,7 @@
/* path names for server master Unix socket */
#define CONFDIR "/.wine"
/* directory for Wine config relative to $HOME */
#define SERVERDIR "
/wineserver-"
/* server socket directory (hostname appended) */
#define SERVERDIR "
wineserver-"
/* server socket directory (hostname appended) */
#define SOCKETNAME "socket"
/* name of the socket file */
struct
master_socket
...
...
@@ -388,7 +388,6 @@ const char *get_config_dir(void)
strcpy
(
confdir
,
home
);
strcat
(
confdir
,
CONFDIR
);
}
mkdir
(
confdir
,
0755
);
/* just in case */
}
return
confdir
;
}
...
...
@@ -403,11 +402,12 @@ static void create_server_dir(void)
if
(
gethostname
(
hostname
,
sizeof
(
hostname
)
)
==
-
1
)
fatal_perror
(
"gethostname"
);
if
(
!
(
serverdir
=
malloc
(
strlen
(
confdir
)
+
strlen
(
SERVERDIR
)
+
strlen
(
hostname
)
+
1
)))
if
(
!
(
serverdir
=
malloc
(
strlen
(
SERVERDIR
)
+
strlen
(
hostname
)
+
1
)))
fatal_error
(
"out of memory
\n
"
);
strcpy
(
serverdir
,
confdir
);
strcat
(
serverdir
,
SERVERDIR
);
if
(
chdir
(
confdir
)
==
-
1
)
fatal_perror
(
"chdir %s"
,
confdir
);
strcpy
(
serverdir
,
SERVERDIR
);
strcat
(
serverdir
,
hostname
);
if
(
chdir
(
serverdir
)
==
-
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment