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
49dce6ec
Commit
49dce6ec
authored
Jan 29, 2016
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #768 from clopez/ignore_git_directories
Ignore any container named '.git'
parents
5c698360
e4ebeab1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lxccontainer.c
src/lxc/lxccontainer.c
+3
-3
No files found.
src/lxc/lxccontainer.c
View file @
49dce6ec
...
...
@@ -4188,9 +4188,9 @@ int list_defined_containers(const char *lxcpath, char ***names, struct lxc_conta
while
(
!
readdir_r
(
dir
,
&
dirent
,
&
direntp
))
{
if
(
!
direntp
)
break
;
if
(
!
strcmp
(
direntp
->
d_name
,
"."
))
continue
;
if
(
!
str
cmp
(
direntp
->
d_name
,
".."
))
// Ignore '.', '..' and any hidden directory
if
(
!
str
ncmp
(
direntp
->
d_name
,
"."
,
1
))
continue
;
if
(
!
config_file_exists
(
lxcpath
,
direntp
->
d_name
))
...
...
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