projects
/
sxemacs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
673e629
)
Use xrealpath
author
Nelson Ferreira
<nelson.ferreira@ieee.org>
Sat, 9 Jan 2016 22:51:27 +0000
(17:51 -0500)
committer
Nelson Ferreira
<nelson.ferreira@ieee.org>
Sat, 9 Jan 2016 22:59:34 +0000
(17:59 -0500)
* src/dired.c (dired_realpath): Use xrealpath for safety
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/dired.c
patch
|
blob
|
history
diff --git
a/src/dired.c
b/src/dired.c
index
8cec22b
..
c0cd01e
100644
(file)
--- a/
src/dired.c
+++ b/
src/dired.c
@@
-130,7
+130,7
@@
dired_realpath(const char *file)
{
char *result = xmalloc_atomic(4096);
- if ( realpath(file, result) == NULL ) {
+ if (
x
realpath(file, result) == NULL ) {
xfree(result);
result = NULL;
}