logrotate/logrotate-3.7.7-curdir2.patch
Daniel Novotny d7ad98efc1 .
2008-11-20 14:39:06 +00:00

16 lines
546 B
Diff

diff -up logrotate-3.7.7/config.c.curdir logrotate-3.7.7/config.c
--- logrotate-3.7.7/config.c.curdir 2008-05-09 09:28:59.000000000 +0200
+++ logrotate-3.7.7/config.c 2008-11-20 15:35:05.000000000 +0100
@@ -316,11 +316,6 @@ static int readConfigPath(const char *pa
DIR *dirp;
here = open(".", O_RDONLY);
- if (here < 0) {
- message(MESS_ERROR, "cannot open current directory: %s\n",
- strerror(errno));
- return 1;
- }
if ((dirp = opendir(path)) == NULL) {
message(MESS_ERROR, "cannot open directory %s: %s\n", path,