~ubuntu-branches/ubuntu/natty/logrotate/natty-security

« back to all changes in this revision

Viewing changes to debian/patches/rh-curdir2.patch

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-01-03 19:08:07 UTC
  • Revision ID: james.westby@ubuntu.com-20090103190807-1xugux23gsmoh3xh
Tags: 3.7.7-2ubuntu1
* Merge from debian unstable, remaining changes: LP: #313461
  - debian/control: Drop mailx to Suggests for Ubuntu; it's only used on
    request, and we don't configure an MTA by default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: logrotate-3.7.7/config.c
 
2
===================================================================
 
3
--- logrotate-3.7.7.orig/config.c       2008-12-17 13:02:16.759636225 +0000
 
4
+++ logrotate-3.7.7/config.c    2008-12-17 13:03:01.407635778 +0000
 
5
@@ -317,11 +317,6 @@
 
6
        DIR *dirp;
 
7
 
 
8
        here = open(".", O_RDONLY);
 
9
-       if (here < 0) {
 
10
-           message(MESS_ERROR, "cannot open current directory: %s\n",
 
11
-                   strerror(errno));
 
12
-           return 1;
 
13
-       }
 
14
 
 
15
        if ((dirp = opendir(path)) == NULL) {
 
16
            message(MESS_ERROR, "cannot open directory %s: %s\n", path,