Blame SOURCES/symlinks-coverity-readlink.patch
|
|
a05d85 |
diff -up symlinks-1.4/symlinks.c.coverity-readlink symlinks-1.4/symlinks.c
|
|
|
a05d85 |
--- symlinks-1.4/symlinks.c.coverity-readlink 2009-10-09 15:03:55.000000000 +0100
|
|
|
a05d85 |
+++ symlinks-1.4/symlinks.c 2011-05-20 14:10:25.682843723 +0100
|
|
|
a05d85 |
@@ -160,7 +160,7 @@ static void fix_symlink (char *path, dev
|
|
|
a05d85 |
struct stat stbuf, lstbuf;
|
|
|
a05d85 |
int c, fix_abs = 0, fix_messy = 0, fix_long = 0;
|
|
|
a05d85 |
|
|
|
a05d85 |
- if ((c = readlink(path, lpath, sizeof(lpath))) == -1) {
|
|
|
a05d85 |
+ if ((c = readlink(path, lpath, sizeof(lpath)-1)) == -1) {
|
|
|
a05d85 |
perror(path);
|
|
|
a05d85 |
return;
|
|
|
a05d85 |
}
|