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
5164df78
Unverified
Commit
5164df78
authored
Feb 12, 2019
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fexecve: remove unnecessary #ifdef
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
27bc4707
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
fexecve.c
src/include/fexecve.c
+3
-4
No files found.
src/include/fexecve.c
View file @
5164df78
...
@@ -30,8 +30,9 @@
...
@@ -30,8 +30,9 @@
#include "config.h"
#include "config.h"
static
int
lxc_raw_execveat
(
int
dirfd
,
const
char
*
pathname
,
char
*
const
argv
[],
static
inline
int
lxc_raw_execveat
(
int
dirfd
,
const
char
*
pathname
,
char
*
const
envp
[],
int
flags
)
char
*
const
argv
[],
char
*
const
envp
[],
int
flags
)
{
{
#ifdef __NR_execveat
#ifdef __NR_execveat
syscall
(
__NR_execveat
,
dirfd
,
pathname
,
argv
,
envp
,
flags
);
syscall
(
__NR_execveat
,
dirfd
,
pathname
,
argv
,
envp
,
flags
);
...
@@ -51,11 +52,9 @@ int efexecve(int fd, char *const argv[], char *const envp[])
...
@@ -51,11 +52,9 @@ int efexecve(int fd, char *const argv[], char *const envp[])
return
-
1
;
return
-
1
;
}
}
#ifdef __NR_execveat
lxc_raw_execveat
(
fd
,
""
,
argv
,
envp
,
AT_EMPTY_PATH
);
lxc_raw_execveat
(
fd
,
""
,
argv
,
envp
,
AT_EMPTY_PATH
);
if
(
errno
!=
ENOSYS
)
if
(
errno
!=
ENOSYS
)
return
-
1
;
return
-
1
;
#endif
ret
=
snprintf
(
procfd
,
sizeof
(
procfd
),
"/proc/self/fd/%d"
,
fd
);
ret
=
snprintf
(
procfd
,
sizeof
(
procfd
),
"/proc/self/fd/%d"
,
fd
);
if
(
ret
<
0
||
(
size_t
)
ret
>=
sizeof
(
procfd
))
{
if
(
ret
<
0
||
(
size_t
)
ret
>=
sizeof
(
procfd
))
{
...
...
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