Search:
Login
Preferences
Register
Forgot your password?
Home
Timeline
Search and View Tickets
Context Navigation
Back to Ticket #1171
Ticket #1171
: realpath_bug.c
File realpath_bug.c,
257 bytes
(added by
Tim Kosse
,
18 years ago
)
Minimal sample to reproduce problem
Line
1
#include
<stdlib.h>
2
#include
<limits.h>
3
#include
<stdio.h>
4
5
int
main
()
6
{
7
system
(
"touch foo"
);
8
link
(
"foo"
,
"bar"
);
9
unlink
(
"foo"
);
10
11
char
out
[
PATH_MAX
];
12
realpath
(
"bar"
,
out
);
13
printf
(
"%s
\n
"
,
out
);
14
}
15
16
Download in other formats:
Original Format