Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
bc9bd0e3
Commit
bc9bd0e3
authored
Oct 03, 2010
by
Daniel Lezcano
Committed by
Daniel Lezcano
Oct 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use the rootfs mount point for the tty's
The rootfs is always located in rootfs->mount, let's use it for the tty. Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
466978b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
conf.c
src/lxc/conf.c
+4
-1
No files found.
src/lxc/conf.c
View file @
bc9bd0e3
...
@@ -386,12 +386,15 @@ static int setup_tty(const struct lxc_rootfs *rootfs,
...
@@ -386,12 +386,15 @@ static int setup_tty(const struct lxc_rootfs *rootfs,
char
path
[
MAXPATHLEN
];
char
path
[
MAXPATHLEN
];
int
i
;
int
i
;
if
(
!
rootfs
->
path
)
return
0
;
for
(
i
=
0
;
i
<
tty_info
->
nbtty
;
i
++
)
{
for
(
i
=
0
;
i
<
tty_info
->
nbtty
;
i
++
)
{
struct
lxc_pty_info
*
pty_info
=
&
tty_info
->
pty_info
[
i
];
struct
lxc_pty_info
*
pty_info
=
&
tty_info
->
pty_info
[
i
];
snprintf
(
path
,
sizeof
(
path
),
"%s/dev/tty%d"
,
snprintf
(
path
,
sizeof
(
path
),
"%s/dev/tty%d"
,
rootfs
->
path
?
rootfs
->
path
:
""
,
i
+
1
);
rootfs
->
mount
?
rootfs
->
mount
:
LXCROOTFSMOUNT
,
i
+
1
);
/* At this point I can not use the "access" function
/* At this point I can not use the "access" function
* to check the file is present or not because it fails
* to check the file is present or not because it fails
...
...
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