Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nccf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
702
Provoz
nccf
Commits
a0bf6dee
Commit
a0bf6dee
authored
15 years ago
by
Yorhel
Browse files
Options
Downloads
Patches
Plain Diff
Removed reliance on dirfd()
parent
aef88fb7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
src/path.c
+0
-5
0 additions, 5 deletions
src/path.c
src/path.h
+1
-0
1 addition, 0 deletions
src/path.h
with
2 additions
and
5 deletions
ChangeLog
+
1
−
0
View file @
a0bf6dee
git - ?
- Implemented hard link detection
- Properly select the next item after deletion
- Removed reliance of dirfd()
1.5 - 2009-05-02
- Fixed incorrect apparent size on directory refresh
...
...
This diff is collapsed.
Click to expand it.
src/path.c
+
0
−
5
View file @
a0bf6dee
...
...
@@ -198,18 +198,13 @@ path_real_done:
char
*
path_real
(
const
char
*
orig
)
{
int
links
=
0
;
char
*
tmp
,
*
ret
;
DIR
*
d
;
if
(
orig
==
NULL
)
return
NULL
;
if
((
d
=
opendir
(
"."
))
==
NULL
)
return
NULL
;
tmp
=
path_absolute
(
orig
);
ret
=
path_real_rec
(
tmp
,
&
links
);
free
(
tmp
);
fchdir
(
dirfd
(
d
));
closedir
(
d
);
return
ret
;
}
...
...
This diff is collapsed.
Click to expand it.
src/path.h
+
1
−
0
View file @
a0bf6dee
...
...
@@ -32,6 +32,7 @@
- Potentionally slow
- Doesn't check return value of malloc() and realloc()
- path_real doesn't check for the existance of the last component
- cwd is unreliable after path_real
*/
#ifndef _path_h
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment